| Name | CVE-2026-140012 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| node-terser (PTS) | bookworm | 5.16.5-2 | vulnerable |
| trixie | 5.38.0-1 | vulnerable | |
| forky, sid | 5.51.2-2 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| node-terser | source | (unstable) | (unfixed) |
https://github.com/terser/terser/security/advisories/GHSA-6jpm-p5cq-9q44
Fixed by: https://github.com/terser/terser/commit/bab93bde6e2156cdd2fdd27eadc4dffd7362dee3 (v5.51.3)
Fixed by: https://github.com/terser/terser/commit/a63e814e816405e1d9cad106b1aeaa29c5c12bdc (v4.8.2)