{"id":"CVE-2026-140012","summary":"Terser: Input sourcemap sourcesContent leaks, revealing input source code","details":"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.","aliases":["GHSA-6jpm-p5cq-9q44"],"modified":"2026-11-30T23:00:11.263909093Z","published":"2026-11-30T21:56:49.877Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140012.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-540"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140012.json"},{"type":"FIX","url":"https://github.com/terser/terser/commit/a63e814e816405e1d9cad106b1aeaa29c5c12bdc"},{"type":"FIX","url":"https://github.com/terser/terser/commit/bab93bde6e2156cdd2fdd27eadc4dffd7362dee3"},{"type":"WEB","url":"https://github.com/terser/terser/releases/tag/v4.8.2"},{"type":"WEB","url":"https://github.com/terser/terser/releases/tag/v5.51.3"},{"type":"ADVISORY","url":"https://github.com/terser/terser/security/advisories/GHSA-6jpm-p5cq-9q44"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140012"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/terser/terser","events":[{"introduced":"aacd5770d9364ecaca80ff450fe329e021ac98aa"},{"fixed":"a74916eac27cc07274b67452fe4d418d578ba0ce"},{"introduced":"0"},{"fixed":"78ccce4a6a20d4d409536a63e924499eb5084416"},{"fixed":"a63e814e816405e1d9cad106b1aeaa29c5c12bdc"},{"fixed":"bab93bde6e2156cdd2fdd27eadc4dffd7362dee3"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"5.0.0"},{"fixed":"5.51.3"}]},{"range":[{"introduced":"0"},{"fixed":"4.8.2"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"a63e814e816405e1d9cad106b1aeaa29c5c12bdc"}]},{"range":[{"fixed":"bab93bde6e2156cdd2fdd27eadc4dffd7362dee3"}],"source":"REFERENCES_COMMIT"},{"original_tag":"v4.8.2","range":[{"fixed":"78ccce4a6a20d4d409536a63e924499eb5084416"}],"source":"REFERENCES_TAG"},{"source":"REFERENCES_TAG","original_tag":"v5.51.3","range":[{"fixed":"a74916eac27cc07274b67452fe4d418d578ba0ce"}]}]}}],"versions":["v5.51.2","v4.8.1","v5.51.1","v5.51.0","v5.50.0","v5.49.2","v5.49.1","v5.49.0","v5.48.0","v5.47.1","v5.47.0","v5.46.2","v5.46.1","v5.46.0","v5.45.0","v5.44.1","v5.44.0","v5.43.1","v5.43.0","v5.42.0","v5.41.0","v5.40.0","v5.39.2","v5.39.0","v5.38.2","v5.38.1","v5.38.0","v5.37.0","v5.36.0","v5.35.0","v5.34.1","v5.34.0","v5.33.0","v5.32.0","v5.31.6","v5.31.5","v5.31.4","v5.31.3","v5.31.2","v5.31.1","v5.31.0","v5.30.4","v5.30.3","v5.30.2","v5.30.1","v5.30.0","v5.29.2","v5.29.1","v5.29.0","v5.28.1","v5.28.0","v5.27.2","v5.27.1","v5.27.0","v5.26.0","v5.25.0","v5.24.0","v5.23.0","v5.19.2","v5.22.0","v5.21.0","v5.20.0","v5.19.4","v5.19.3","v5.19.1","v5.19.0","v5.18.2","v5.18.1","v5.18.0","v5.17.7","v5.17.6","v5.17.5","v5.17.4","v5.17.3","v5.17.2","v5.17.1","v5.17.0","v5.16.9","v5.16.8","v5.16.6","v5.16.4","v5.16.3","v5.16.2","v5.16.1","5.16.0","v5.15.1","v5.15.0","v5.14.2","v5.14.1","v5.14.0","v5.13.1","v4.8.0","v5.13.0","v5.12.1","v5.12.0","v5.11.0","v5.10.0","v5.9.0","v5.8.0","v5.7.2","v5.7.1","v5.7.0","v5.6.1","v5.6.0","v5.5.1","v5.5.0","v5.4.0","v5.3.8","v5.3.7","v5.3.6","v5.3.5","v5.3.4","v5.3.3","v5.3.2","v5.3.1","v5.3.0","v5.2.1","v5.2.0","v5.1.0","v5.0.0","v4.7.0","v4.6.13","v4.6.12","v4.6.11","v4.6.10","v4.6.9","v4.6.8","v4.6.6","v4.6.5","v4.6.4","v4.6.3","v4.6.2","v4.6.1","v4.6.0","v4.5.0","v4.4.3","v4.4.2","v4.4.1","v4.4.0","v4.3.11","v4.3.10","v4.3.9","v4.3.8","v4.3.7","v4.3.6","v4.3.4","v4.3.3","v4.3.2","v4.3.1","v4.3.0","v4.2.1","v4.1.3","v4.1.2","v4.1.0","v4.0.2","v4.0.1","v4.0.0","v3.17.0","v3.16.1","v3.16.0","v3.14.1","v3.14.0","v3.13.1","v3.13.0","v3.12.0","v3.11.0","v3.10.13","v3.10.12","v3.10.11","3.10.11","v3.10.10","v3.10.8","v3.10.7","v3.10.6","v3.10.5","v3.10.4","v3.10.3","v3.10.2","v3.10.1","v3.10.0","v3.9.3","v3.9.2","v3.9.1","v3.8.2","v3.8.1","v3.8.0","v3.7.8","v3.7.7","harmony-v3.3.10","harmony-v3.3.9","harmony-v3.3.8","harmony-v3.3.7","harmony-v3.3.6","harmony-v3.3.5","harmony-v3.3.4","harmony-v3.3.3","harmony-v3.3.2","harmony-v3.3.1","harmony-v3.3.0","harmony-v3.2.2","harmony-v3.2.1","harmony-v3.2.0","harmony-v3.1.10","harmony-v3.1.9","harmony-v3.1.8","harmony-v3.1.7","harmony-v3.1.6","harmony-v3.1.5","harmony-v3.1.4","harmony-v3.1.3","harmony-v3.1.2","harmony-v3.1.1","harmony-v3.1.0","harmony-v3.0.28","harmony-v3.0.27","harmony-v3.0.26","harmony-v3.0.25","harmony-v3.0.24","harmony-v3.0.23","harmony-v3.0.22","harmony-v3.0.21","harmony-v3.0.20","harmony-v3.0.19","harmony-v3.0.18","harmony-v3.0.17","harmony-v3.0.15","harmony-v3.0.14","harmony-v3.0.13","harmony-v3.0.12","harmony-v3.0.11","harmony-v3.0.10","harmony-v3.0.9","harmony-v3.0.8","harmony-v3.0.7","harmony-v3.0.6","harmony-v3.0.5","harmony-v3.0.4","harmony-v3.0.3","harmony-v3.0.2","harmony-v3.0.1","harmony-v3.0.0","harmony-v2.8.22","harmony-v2.8.21","harmony-v2.8.19","harmony-v2.8.17","harmony-v2.8.15","harmony-v2.8.14","harmony-v2.8.13","harmony-v2.8.12","harmony-v2.8.11","harmony-v2.8.7","harmony-v2.8.5","harmony-v2.8.4","harmony-v2.8.2","harmony-v2.8.0","harmony-v2.7.5","v2.4.24","v2.4.23","v2.4.22","v2.4.21","v2.4.20","v2.4.19","v2.4.18","v2.4.16","v2.4.15","v2.4.14","v2.4.13","v2.4.12","v2.4.11","v2.4.10","v2.4.9","v2.4.8","v2.4.7","v2.4.6","v2.4.5","v2.4.4","v2.4.3","v2.4.2","v2.4.1","v2.4.0","v2.3.6","v2.3.5","v2.3.4","v2.3.3","v2.3.2","v2.3.1","v2.3.0","v2.3","v2.2.5","v2.2.4","v2.2.3","v2.2.2","v2.2.1","v2.2.0","v2.1.11","v2.1.10","v2.1.9","v2.1.8","v2.1.7","v2.1.6","v2.1.5","v2.1.4","v2.1.3","v2.1.2","v2.1.1","v2.1","v2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-140012.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"}]}