CVE-2026-140012 with a CVSS score of 5.3 is a sensitive information exposure flaw in the Terser JavaScript minifier's source map handling, affecting terser (npm) versions < 4.8.2 and terser (npm) versions >= 5.0.0, < 5.51.3. When Terser's minify function processes an input source map supplied through sourceMap.content, it can copy the original sourcesContent from that input map into the generated output source map even when the caller sets includeSources: false to suppress source inclusion. The vulnerability is exploitable over a network with low complexity, no privileges, and no user interaction, provided an attacker can access the resulting source map or the build pipeline that exposes it. The leaked sourcesContent may contain original JavaScript source, comments, configuration values, constants, and secret tokens, allowing disclosure of proprietary code, credentials, API keys, or other sensitive data. Business impact includes loss of intellectual property, exposure of secrets that can enable further unauthorized access, compliance violations, and increased incident response costs.
We recommend you to update Terser to version 4.8.2 or 5.51.3 depending on your installed branch.[/subscribe_to_unlock_form]
CVE-2026-140012 with a CVSS score of 5.3 is a sensitive information exposure flaw in the Terser JavaScript minifier's source map handling, affecting terser (npm) versions < 4.8.2 and terser (npm) versions >= 5.0.0, < 5.51.3. When Terser's minify function processes an input source map supplied through sourceMap.content, it can copy the original sourcesContent from that input map into the generated output source map even when the caller sets includeSources: false to suppress source inclusion. The vulnerability is exploitable over a network with low complexity, no privileges, and no user interaction, provided an attacker can access the resulting source map or the build pipeline that exposes it. The leaked sourcesContent may contain original JavaScript source, comments, configuration values, constants, and secret tokens, allowing disclosure of proprietary code, credentials, API keys, or other sensitive data. Business impact includes loss of intellectual property, exposure of secrets that can enable further unauthorized access, compliance violations, and increased incident response costs.
We recommend you to update Terser to version 4.8.2 or 5.51.3 depending on your installed branch.[emaillocker id="1283"]
The following reports contain further technical details:
[/emaillocker]