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.
Published: 2026-11-30
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No solution or workaround provided in the CVE record.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-6jpm-p5cq-9q44 Terser: Input sourcemap sourcesContent leaks, revealing input source code
History

Thu, 03 Dec 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 03 Dec 2026 07:15:00 +0000

Type Values Removed Values Added
First Time appeared Terser
Terser terser
Vendors & Products Terser
Terser terser

Mon, 30 Nov 2026 22:00:00 +0000

Type Values Removed Values Added
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.
Title Terser: Input sourcemap sourcesContent leaks, revealing input source code
Weaknesses CWE-540
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-12-03T15:59:26.777Z

Reserved: 2026-11-30T17:42:59.710Z

Link: CVE-2026-140012

cve-icon Vulnrichment

Updated: 2026-12-03T15:59:20.559Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-11-30T22:17:31.187

Modified: 2026-12-04T15:47:41.367

Link: CVE-2026-140012

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-12-04T03:00:08Z

Weaknesses