Path traversal in babel - CVE-2026-49356

 

Path traversal in babel - CVE-2026-49356

Published: September 16, 2026


Vulnerability identifier: #VU150182
CSH Severity: Low
CVSS v4: 2 [CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-49356
CWE-ID: CWE-22
Exploitation vector: Local access
Exploit availability: No public exploit available

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.


Affected software

babel

How to mitigate CVE-2026-49356

Install security update from vendor's website.

babel - addressed in versions 7.29.6, 8.0.0 rc.6

External References

Related Security Bulletins