## Terser: Input sourcemap sourcesContent leaks, revealing input source code

- 種別: advisory
- 重大度: medium
- 関連技術: nodejs
- CVE: CVE-2026-140012
- 公開日時: 2026-12-01T18:35:11.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-6jpm-p5cq-9q44)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-6jpm-p5cq-9q44

影響: npm:terser < 4.8.2 → 4.8.2, npm:terser >= 5.0.0, < 5.51.3 → 5.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…