CERT24Terser may expose sensitive source code in source maps — CVE-2026-140012Loading data…

Terser may expose sensitive source code in source maps — CVE-2026-140012

In Terser versions before 4.8.2 and from 5.0.0 to before 5.51.3, minify() copies the input source map's sourcesContent into the generated source map even when includeSources is false. Anyone who receives the generated source map may read the original source code, which can include comments, constants, or embedded secret tokens.

← Back to intelligence

Terser may expose sensitive source code in source maps — CVE-2026-140012

In Terser versions before 4.8.2 and from 5.0.0 to before 5.51.3, minify() copies the input source map's sourcesContent into the generated source map even when includeSources is false. Anyone who receives the generated source map may read the original source code, which can include comments, constants, or embedded secret tokens.