{"api_version":"1","generated_at":"2026-12-01T02:35:30+00:00","cve":"CVE-2026-140012","urls":{"html":"https://cve.report/CVE-2026-140012","api":"https://cve.report/api/cve/CVE-2026-140012.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-140012","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-140012"},"summary":{"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.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-11-30 22:17:31","updated_at":"2026-11-30 22:17:31"},"problem_types":["CWE-540","CWE-540 CWE-540: Inclusion of Sensitive Information in Source Code"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","score":"5.3","severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","baseScore":5.3,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"NONE"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"5.3","severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","data":{"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"}}],"references":[{"url":"https://github.com/terser/terser/commit/a63e814e816405e1d9cad106b1aeaa29c5c12bdc","name":"https://github.com/terser/terser/commit/a63e814e816405e1d9cad106b1aeaa29c5c12bdc","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/terser/terser/releases/tag/v5.51.3","name":"https://github.com/terser/terser/releases/tag/v5.51.3","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/terser/terser/security/advisories/GHSA-6jpm-p5cq-9q44","name":"https://github.com/terser/terser/security/advisories/GHSA-6jpm-p5cq-9q44","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/terser/terser/commit/bab93bde6e2156cdd2fdd27eadc4dffd7362dee3","name":"https://github.com/terser/terser/commit/bab93bde6e2156cdd2fdd27eadc4dffd7362dee3","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/terser/terser/releases/tag/v4.8.2","name":"https://github.com/terser/terser/releases/tag/v4.8.2","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-140012","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140012","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"terser","product":"terser","version":"affected >= 5.0.0, < 5.51.3","platforms":[]},{"source":"CNA","vendor":"terser","product":"terser","version":"affected < 4.8.2","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"product":"terser","vendor":"terser","versions":[{"status":"affected","version":">= 5.0.0, < 5.51.3"},{"status":"affected","version":"< 4.8.2"}]}],"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."}],"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","description":"CWE-540: Inclusion of Sensitive Information in Source Code","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-30T21:56:49.877Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/terser/terser/security/advisories/GHSA-6jpm-p5cq-9q44","tags":["x_refsource_CONFIRM"],"url":"https://github.com/terser/terser/security/advisories/GHSA-6jpm-p5cq-9q44"},{"name":"https://github.com/terser/terser/commit/a63e814e816405e1d9cad106b1aeaa29c5c12bdc","tags":["x_refsource_MISC"],"url":"https://github.com/terser/terser/commit/a63e814e816405e1d9cad106b1aeaa29c5c12bdc"},{"name":"https://github.com/terser/terser/commit/bab93bde6e2156cdd2fdd27eadc4dffd7362dee3","tags":["x_refsource_MISC"],"url":"https://github.com/terser/terser/commit/bab93bde6e2156cdd2fdd27eadc4dffd7362dee3"},{"name":"https://github.com/terser/terser/releases/tag/v4.8.2","tags":["x_refsource_MISC"],"url":"https://github.com/terser/terser/releases/tag/v4.8.2"},{"name":"https://github.com/terser/terser/releases/tag/v5.51.3","tags":["x_refsource_MISC"],"url":"https://github.com/terser/terser/releases/tag/v5.51.3"}],"source":{"advisory":"GHSA-6jpm-p5cq-9q44","discovery":"UNKNOWN"},"title":"Terser: Input sourcemap sourcesContent leaks, revealing input source code"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-140012","datePublished":"2026-11-30T21:56:49.877Z","dateReserved":"2026-11-30T17:42:59.710Z","dateUpdated":"2026-11-30T21:56:49.877Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 22:17:31","lastModifiedDate":"2026-11-30 22:17:31","problem_types":["CWE-540","CWE-540 CWE-540: Inclusion of Sensitive Information in Source Code"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","baseScore":5.3,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"NONE"},"exploitabilityScore":3.9,"impactScore":1.4}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"140012","Ordinal":"1","Title":"Terser: Input sourcemap sourcesContent leaks, revealing input so","CVE":"CVE-2026-140012","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"140012","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Terser: Input sourcemap sourcesContent leaks, revealing input so"}]}}}