CVE-2026-140012
JSON

5.3medium

Terser: Input sourcemap sourcesContent leaks, revealing input source code

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.45% (higher than 40% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

Terser is a JavaScript parser, mangler, and compressor toolkit for ES6+. Prior to 4.8.2, and from 5.0.0 to before 5.51.3, when minify() is given an input source map through the sourceMap.content option, Terser copies that map's sourcesContent into the generated source map even when includeSources is false. Anyone who receives the generated source map can read the original source code, which may include comments, constants, or embedded secret tokens. This issue is fixed in versions 4.8.2 and 5.51.3.

Affected

Product or packageVersionsReported by
terser terser>= 5.0.0, < 5.51.3, < 4.8.2CVE List

Classification

References

Sources

SourceRecordLicence
CVE ListCVE-2026-140012 changed 2026-11-30CVE Terms of Use
NVDCVE-2026-140012 changed 2026-11-30Public domain