CVE-2026-140012
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.
INFO
Published Date :
Nov. 30, 2026, 9:56 p.m.
Last Modified :
Nov. 30, 2026, 9:56 p.m.
Remotely Exploit :
No
Source :
GitHub_M
Solution
- Update Terser to version 4.8.2 or 5.51.3.
- Ensure source maps are handled securely.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-140012 vulnerability anywhere in the article.