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: babel
References1
- github.com/babel/babel/security/advisories/GHSA-4x5r-pxfx-6jf8 MitigationVendor Advisory
Metrics
- CVSS 3.1
-
3.6
LOW
Score source: NVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N - EPSS — exploit probability
- 0% percentile: 4 · as of 16 November 2026
- CWE
- CWE-22CWE-200
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.