Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-140012
Published:November 30, 2026
Updated:December 01, 2026
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 Packages
https://github.com/terser/terser.git (GITHUB):
Affected version(s) >=v5.0.0-beta.0 <v5.51.3 || >=v5.0.0 <v5.51.3
Fix Suggestion:
Update to version v5.51.3
https://github.com/terser/terser.git (GITHUB):
Affected version(s) >=v3.7.7 <v4.8.2 || >=v4.0.0 <v4.8.2
Fix Suggestion:
Update to version v4.8.2
terser (NPM):
Affected version(s) =0.0.1 <4.8.2 || >=4.0.0 <4.8.2 || >=3.7.1 <4.8.2
Fix Suggestion:
Update to version 4.8.2
terser (NPM):
Affected version(s) >=5.0.0 <5.51.3 || >=5.0.0-beta.0 <5.51.3
Fix Suggestion:
Update to version 5.51.3
terser (NPM):
Affected version(s) >=0.0.1 <4.8.2
Fix Suggestion:
Update to version 4.8.2
Do you need more information?
Contact Us
CVSS v4
Base Score:
6.9
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Inclusion of Sensitive Information in Source Code
EPSS
Base Score:
0.45