Path traversal in babel - CVE-2026-49356
Published: September 16, 2026
Vulnerability details
The vulnerability allows a remote attacker to read arbitrary source maps from the system running Babel.
The vulnerability exists due to improper limitation of a pathname to a restricted directory in @babel/core's sourceMappingURL comment handling when compiling attacker-controlled source code. A remote attacker can supply crafted source code containing a sourceMappingURL comment to read a source map at a known path.
Exploitation requires the ability to read the compiled output and knowledge of the target source map's path.