CVE-2026-140012: Terser: Input sourcemap sourcesContent leaks, revealing input source code
Vulnerability summary
CVE-2026-140012 is a medium (CVSS 5.3) vulnerability in terser. EPSS estimates a 0.45% chance of exploitation in the next 30 days, higher than 40.7% of scored vulnerabilities.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 30-11-2026PublishedVulnerability first disclosed.
- 03-12-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- OSV · NpmEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS trend
Probability
0.45%
Chance of exploitation in the next 30 days
Percentile
41%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard30 products
- airflow-2All versions (No fix recorded)
- arangodb-3.11All versions (No fix recorded)
- arangodb-3.12All versions (No fix recorded)
- argo-workflows-ui-3.7All versions (No fix recorded) | < 3.7.18-r18
- cadence-webAll versions (No fix recorded) | < 4.0.18-r5
Debian1 product
- node-terserAll versions (No fix recorded)
Npm1 product
- terser< 4.8.2 | ≥ 5.0.0, < 5.51.3
Terser1 product
- terser≥ 5.0.0, < 5.51.3 | < 4.8.2
4 vendors · 33 products
References
9 links- github.com/terser/terserPACKAGE