{"id":"CVE-2026-140012","state":"PUBLISHED","title":"Terser: Input sourcemap sourcesContent leaks, revealing input source code","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.","publishedAt":"2026-11-30T21:56:49.877Z","updatedAt":"2026-11-30T21:56:49.877Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["terser terser"],"affected":[{"vendor":"terser","product":"terser","versions":[{"version":">= 5.0.0, < 5.51.3","status":"affected"},{"version":"< 4.8.2","status":"affected"}]}],"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"],"weaknesses":["CWE-540"],"ingestedAt":"2026-11-30T22:06:06.070Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/140xxx/CVE-2026-140012.json","commit":"51fc2ef6276224d2b960abab2ad9100a5322c5c5","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-140012","state":"PUBLISHED","datePublished":"2026-11-30T21:56:49.877Z","dateUpdated":"2026-11-30T21:56:49.877Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-11-30T17:42:59.710Z"},"containers":{"cna":{"title":"Terser: Input sourcemap sourcesContent leaks, revealing input source code","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"terser","product":"terser","versions":[{"version":">= 5.0.0, < 5.51.3","status":"affected"},{"version":"< 4.8.2","status":"affected"}]}],"references":[{"url":"https://github.com/terser/terser/security/advisories/GHSA-6jpm-p5cq-9q44","name":"https://github.com/terser/terser/security/advisories/GHSA-6jpm-p5cq-9q44","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/terser/terser/commit/a63e814e816405e1d9cad106b1aeaa29c5c12bdc","name":"https://github.com/terser/terser/commit/a63e814e816405e1d9cad106b1aeaa29c5c12bdc","tags":["x_refsource_MISC"]},{"url":"https://github.com/terser/terser/commit/bab93bde6e2156cdd2fdd27eadc4dffd7362dee3","name":"https://github.com/terser/terser/commit/bab93bde6e2156cdd2fdd27eadc4dffd7362dee3","tags":["x_refsource_MISC"]},{"url":"https://github.com/terser/terser/releases/tag/v4.8.2","name":"https://github.com/terser/terser/releases/tag/v4.8.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/terser/terser/releases/tag/v5.51.3","name":"https://github.com/terser/terser/releases/tag/v5.51.3","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-540","lang":"en","description":"CWE-540: Inclusion of Sensitive Information in Source Code","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-11-30T21:56:49.877Z"},"source":{"advisory":"GHSA-6jpm-p5cq-9q44","discovery":"UNKNOWN"}}}}}