Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-140012— Terser: Input sourcemap sourcesContent leaks, revealing input source code

Quick assessment

Affected
terser terser
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Terser 是一个用于 ES6+ 的 JavaScript 解析器、混淆器和压缩工具包。在 4.8.2 之前以及 5.0.0 到 5.51.3 之前的版本中,当通过 sourceMap.content 选项向 minify() 传入输入 source map 时,即使 includeSources 为 false,Terser 也会把该 source map 中的 sourcesContent 复制到生成的 source map 中。任何接收生成 source map 的人都能读取原始源代码,其可能包含注释、常量

CVSS 5.3 · Medium
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-140012

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Terser: Input sourcemap sourcesContent leaks, revealing input source code
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
通过源代码导致的信息暴露
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
terser terser >= 5.0.0, < 5.51.3 -

II. Public POCs for CVE-2026-140012

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-140012

请登录查看更多情报信息。

Other References for CVE-2026-140012 (5)

IV. Related Vulnerabilities