← 漏洞与更新

中危漏洞公告JavaScript / Node.js

Terser: Input sourcemap sourcesContent leaks, revealing input source code

受影响

软件包受影响版本修复版本
npm:terser< 4.8.24.8.2
npm:terser>= 5.0.0, < 5.51.35.51.3

Leakage of user source code, which may include comments, constants with secret tokens, etc. When using Terser with an input sourcemap (sourceMap.content), and this input sourcemap has original source information (sourcesContent), Terser leaks this sourcesContent into the output, even when the user specified includeSources: false to opt-out. Details To help developers debug their JS applications, Terser's minify function reads and produces [source maps](https://developer.mozilla.org/en-US/docs/G…

在 GitHub Advisory Database 阅读

2026/12/02 03:35,GitHub Advisory Database 发布了“Terser: Input sourcemap sourcesContent leaks, revealing input source code”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:JavaScript / Node.js。CVE:CVE-2026-140012。