Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @babel/core
  4. ›
  5. CVE-2026-49356

CVE-2026-49356: @babel/core: Arbitrary File Read via sourceMappingURL Comment

June 15, 2026 (updated July 15, 2026)

Using @babel/core to compile maliciously crafted code can allow ab attacker to read any source map from the system that is running Babel, if these conditions are all true:

  • the attacker controls the input source code
  • the attacker can read the output source code
  • the attacker knows the path of the source map file that they want to read

Users that only compile trusted code are not impacted.

References

  • babeljs.io/docs/options
  • github.com/advisories/GHSA-4x5r-pxfx-6jf8
  • github.com/babel/babel/security/advisories/GHSA-4x5r-pxfx-6jf8
  • nvd.nist.gov/vuln/detail/CVE-2026-49356

Code Behaviors & Features

Detect and mitigate CVE-2026-49356 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 7.29.6, all versions starting from 8.0.0-alpha.0 before 8.0.0-rc.6

Fixed versions

  • 7.29.6
  • 8.0.0-rc.6

Solution

Upgrade to versions 7.29.6, 8.0.0-rc.6 or above.

Impact 3.2 LOW

CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N

Learn more about CVSS

Weakness

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

Source file

npm/@babel/core/CVE-2026-49356.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:29 +0000.