Skip to main content
VulnerabilityPublished

CVE-2026-140012: terser · Inclusion of Sensitive Information in Source Code

Affects terserSource CVE Database V5

0
Compare

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

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.15.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
terserterserAffected
  • >=5.0.0 <5.51.3
Fixed in
  • 5.51.3
terserterserAffected
  • <4.8.2
Fixed in
  • 4.8.2

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

Community reviews

Loading reviews…