MEDIUM · CVSS 5.3 Published: 2026-11-30

CVE-2026-140012 — Technical Security Advisory & CVSS Profile

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.

Technical Metadata

IdentifierCVE-2026-140012
Base Severity / ScoreMEDIUM (5.3 / 10.0)
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness ClassificationCWE-540
Archive CategoriesMEDIUM Advisories · 2026 Index

Operational Mitigation Guidance

Schedule vendor updates during routine patching windows and verify whether affected code paths are reachable in your deployment configuration. For architectural isolation principles, review per-process namespace isolation.

Upstream References

Related Security Advisories

CVE-2026-140014 MEDIUM 6.5
CVE-2026-138277 MEDIUM 4.7
CVE-2026-139886 MEDIUM 5.3
CVE-2026-140098 MEDIUM 6.9
CVE-2026-140103 MEDIUM 5.4
CVE-2026-104931 MEDIUM 4.6