# CVE-2026-140012: Terser: Input sourcemap sourcesContent leaks, revealing input source code

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-30 · Modified: 2026-12-03
- Aliases: GHSA-6jpm-p5cq-9q44, CGA-257f-fm5f-mh28, CGA-2j8w-3vfp-gm4w, CGA-7x2x-rmwv-hcw5, CGA-9h9p-7hp4-m4pm, CGA-g6qp-36v2-fx2j, CGA-24p3-c2m6-v8mj, CGA-2j8g-whwj-m5cj, CGA-2pmh-44vg-3v98, CGA-2r26-xx9m-v978, CGA-2r2c-8v63-j7mr, CGA-37vm-75r7-2m9w, CGA-3vr7-grmv-hgqj, CGA-49x2-6x5v-mhv6, CGA-52p4-r2f3-j2cp, CGA-5hh4-6gp8-76m9, CGA-768p-xrxp-g2fx, CGA-7v2f-xx4x-3wg5, CGA-856v-246f-3vmc, CGA-8mx7-gfm5-pp84, CGA-c524-335w-38h2, CGA-ccrh-33cq-h6p7, CGA-cwpc-5q79-7qwg, CGA-f3wh-m7cj-5m7x, CGA-f949-23m7-9j9m, CGA-fmrh-5hq3-g5jq, CGA-g676-7ch6-ffqq, CGA-gpgc-cp2c-6vgm, CGA-h7wx-cmj9-54qr, CGA-hqwv-448m-3mjr, CGA-jp25-p6xc-w4m4, CGA-jpcq-qxjw-j6rh, CGA-m3jh-32jf-wvpj, CGA-m6wr-j64c-m8ch, CGA-mg37-cpmj-9qr2, CGA-mjgf-h743-7j23, CGA-p493-47cg-6wrf, CGA-pfqq-vcrw-q7c8, CGA-pgp3-62rc-m6v3, CGA-pjfp-36vj-f5mv, CGA-ppm7-wq6v-w3h6, CGA-pv4j-3wf2-g37v, CGA-pwqh-7jqf-xpfg, CGA-px43-3fh4-x3v6, CGA-q9xg-9rfg-8hqj, CGA-qg96-25r4-hcq6, CGA-qgc8-pqr6-pc4x, CGA-qv3r-4qxq-w464, CGA-rm4x-f8f8-3ppf, CGA-vff8-vpmj-w2hp, CGA-vgcc-cr4g-q5r4, CGA-x3rm-fj2q-6vgw, CGA-3fj7-222m-hr39, CGA-3qwp-w23h-c248, CGA-5xv6-5q27-7hj7, CGA-8x66-wq3g-f4cq, CGA-xx6c-qc38-rh77, DEBIAN-CVE-2026-140012
- Record: https://cvemate.com/vulnerability/CVE-2026-140012 · JSON: https://cvemate.com/vulnerability/CVE-2026-140012/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- EPSS: 0.449%, percentile 40.762%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 33)

- chainguard airflow-2 (Chainguard): All versions (No fix recorded)
- chainguard arangodb-3.11 (Chainguard): All versions (No fix recorded)
- chainguard arangodb-3.12 (Chainguard): All versions (No fix recorded)
- chainguard argo-workflows-ui-3.7 (Chainguard): All versions (No fix recorded) \| \< 3.7.18-r18
- chainguard cadence-web (Chainguard): All versions (No fix recorded) \| \< 4.0.18-r5
- chainguard cypress (Chainguard): All versions (No fix recorded)
- chainguard emscripten (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.4 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)
- chainguard keep-ui (Chainguard): All versions (No fix recorded) \| \< 0.55.0-r2
- chainguard kubeflownotebookswg-jupyter-scipy (Chainguard): All versions (No fix recorded)
- chainguard nextcloud-server-33-app-bruteforcesettings (Chainguard): All versions (No fix recorded)
- chainguard nextcloud-server-34 (Chainguard): All versions (No fix recorded)
- chainguard nextcloud-server-34-app-bruteforcesettings (Chainguard): All versions (No fix recorded)
- chainguard nextcloud-server-35 (Chainguard): All versions (No fix recorded)

## References

- <https://github.com/terser/terser/security/advisories/GHSA-6jpm-p5cq-9q44>
- <https://github.com/terser/terser/commit/a63e814e816405e1d9cad106b1aeaa29c5c12bdc>
- <https://github.com/terser/terser/commit/bab93bde6e2156cdd2fdd27eadc4dffd7362dee3>
- <https://github.com/terser/terser/releases/tag/v4.8.2>
- <https://github.com/terser/terser/releases/tag/v5.51.3>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-140012>
- <https://github.com/terser/terser>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140012.json>
- <https://security-tracker.debian.org/tracker/CVE-2026-140012>

---

Data as of 2026-12-05T06:55:25.624Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
