Skip to main content
← All vulnerabilities
CVE-2026-49356GHSA-4X5R-PXFX-6JF8

Babel: Arbitrary File Read via sourceMappingURL Comment in @babel/core

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 8.0.0-rc.5, 7.29.6, 8.0.0-rc.6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • babel babel

    From 8.0.0-alpha.0 · fixed in 8.0.0-rc.5; fixed in 7.29.6

  • @babel/corenpm

    From 8.0.0-alpha.0 · fixed in 8.0.0-rc.6

  • @babel/corenpm

    fixed in 7.29.6

References 1

GitHub · babel/babel