What’s Vulnerable › Vulnerabilities
CVE-2026-49356: Babel: Arbitrary File Read via sourceMappingURL Comment in @babel/core
- Severity: low (CVSS 3.6 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-06-22 · updated 2026-06-26
- Weakness: CWE-22
Description
Babel is a compiler for writing next generation JavaScript. Prior to 8.0.0-rc.6 and 7.29.6, @babel/core affected by an arbitrary file read via a sourceMappingURL comment. Using @babel/core to compile maliciously crafted code can allow an attacker to read any source map from the system that is running Babel, if the attacker controls the input source code, can read the output source code, and knows the path of the source map file that they want to read. This vulnerability is fixed in 8.0.0-rc.6 and 7.29.6.
Affected products
- babel: before 7.29.6; 8.0.0-alpha0, 8.0.0-alpha1, 8.0.0-alpha10, 8.0.0-alpha11, 8.0.0-alpha12, 8.0.0-alpha13 (+22) — fixed in 7.29.6
- Npm @Babel/Core: from 8.0.0-alpha.0 before 8.0.0-rc.6; before 7.29.6 — fixed in 8.0.0-rc.6, 7.29.6
How to fix
Upgrade to a fixed version: babel 7.29.6; Npm @Babel/Core 8.0.0-rc.6, 7.29.6. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-49356 or the next vulnerability affects your stack