Babel: Arbitrary File Read via sourceMappingURL Comment in @babel/core (babel babel)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.15 % · percentile 4 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-22 — Improper Limitation of a Pathname to a Restricted Directory
- CWE-200 — Exposure of Sensitive Information to an Unauthorized Actor
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | LOW 3.2 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N | GitHub_M |
| CVSS 3.1 | LOW 3.2 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N | NVD · security-advisories@github.com (Secondary) |
| CVSS 3.1 | LOW 3.6 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N | NVD · nvd@nist.gov (Primary) |
Advisories
- GHSA-4x5r-pxfx-6jf8 — @babel/core: Arbitrary File Read via sourceMappingURL Comment
European references
- ENISA EUVD · EUVD-2026-38302
- GCVE · GCVE-0-2026-49356
CERT-FR advisories
- CERTFR-2026-AVI-1385 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1256 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1233 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:babel:babel:*:*:*:*:*:*:*:*< 7.29.6cpe:2.3:a:babel:babel:8.0.0:alpha0:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:alpha1:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:alpha10:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:alpha11:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:alpha12:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:alpha13:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:alpha14:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:alpha15:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:alpha16:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:alpha17:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:alpha2:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:alpha3:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:alpha4:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:alpha5:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:alpha6:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:alpha7:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:alpha8:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:alpha9:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:beta0:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:beta1:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:beta2:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:beta3:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:beta4:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:rc1:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:rc2:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:rc3:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:rc4:*:*:*:*:*:*cpe:2.3:a:babel:babel:8.0.0:rc5:*:*:*:*:*:*
Affected products
| Product | Versions |
|---|---|
| babel · babel | affected >= 8.0.0-alpha.0, < 8.0.0-rc.5 ; affected < 7.29.6 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |