CVE-2026-49356

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

State
Published
Severity
3.2 Low
Published
Jun 22, 2026
Updated
Jun 22, 2026
Reserved
May 29, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.13.2 LowCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:NGitHub_M

Weaknesses

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor

Affected Products

ProductVersions
babelbabel
  • >= 8.0.0-alpha.0, < 8.0.0-rc.5Affected
  • < 7.29.6Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.