CVE-2026-140012: terser · Inclusion of Sensitive Information in Source Code
Affects terserSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium : upgrade to 5.51.3 or 4.8.2 when convenient.
Data as of 30 Nov 2026, 22:16 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 5.3 |
|---|
- Patch
- Available – fixed in 5.51.3, 4.8.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 30 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.
What to do
Upgrade terser to 5.51.3 or 4.8.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| terserterser | Affected
| Fixed in
|
| terserterser | Affected
| Fixed in
|
AI-suggested
Upgrade Terser to version 4.8.2 or later if using the 4.x series, or to version 5.51.3 or later if using the 5.x series. These versions contain the fix that prevents sourcesContent from being copied into the generated source map when includeSources is false. No other mitigation is required as the issue is resolved in these fixed versions.
Description
Terser versions prior to 4.8.2 and from 5.0.0 up to but not including 5.51.3 contain a vulnerability where sensitive source code information can be unintentionally included in generated source maps. This occurs when minify() is called with a source map input via sourceMap.content, causing the original sourcesContent to be copied even if includeSources is set to false. The exposure of original source code may reveal comments, constants, or embedded secret tokens. This issue is fixed in versions 4.8.2 and 5.51.3.
References
- github.com/terser/terser/security/advisories/GHSA-6jpm-p5cq-9q44 (opens in a new tab)
- github.com/terser/terser/commit/a63e814e816405e1d9cad106b1aeaa29c5c12bdc (opens in a new tab)
- github.com/terser/terser/commit/bab93bde6e2156cdd2fdd27eadc4dffd7362dee3 (opens in a new tab)
- github.com/terser/terser/releases/tag/v4.8.2 (opens in a new tab)
- github.com/terser/terser/releases/tag/v5.51.3 (opens in a new tab)