Terser: Input sourcemap sourcesContent leaks, revealing input source code
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| terser | terser | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Terser | Terser |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-6jpm-p5cq-9q44 | Terser: Input sourcemap sourcesContent leaks, revealing input source code |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.449% probability within 30 days)
Key SSVC decision points have not yet been added.
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Terser
Terser terser |
|
| Vendors & Products |
Terser
Terser terser |
| 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
|