Security mailing lists by PureSourceCode

CVE-2026-140012

MEDIUM 5.3CVSS 3.1

Terser: Input sourcemap sourcesContent leaks, revealing input source code

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.

Published
30 Nov 2026
Last modified
4 Dec 2026
Assigned by
security-advisories@github.com
NVD status
Awaiting Analysis
Weakness
CWE-540
Also known as
GHSA-6jpm-p5cq-9q44
Sources
NVDJSONCVE ListJSONOSV GHSA-6jpm-p5cq-9q44JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVE List GitHub_M CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVE List CISA-ADP SSVC Exploitation: none; Automatable: yes; Technical Impact: partial

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List terser terser = >= 5.0.0, < 5.51.3; = < 4.8.2
OSV npm terser < 4.8.2 4.8.2
OSV npm terser >= 5.0.0, < 5.51.3 5.51.3

References

History

  • 4 Dec 2026 17:09 UTC · NVD: status Received → Awaiting Analysis
  • 3 Dec 2026 17:56 UTC · NVD: updated (other details)
  • 3 Dec 2026 16:56 UTC · CVE List: updated (other details)
  • 1 Dec 2026 19:30 UTC · OSV: first stored (published 1 Dec 2026)
  • 30 Nov 2026 22:30 UTC · NVD: first stored (published 30 Nov 2026)
  • 30 Nov 2026 22:08 UTC · CVE List: first stored (published 30 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.