CVE-2026-49356
LOW 3.6CVSS 3.1@babel/core: Arbitrary File Read via sourceMappingURL Comment
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.
- Published
- 22 Jun 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-200CWE-22
- Also known as
- GHSA-4x5r-pxfx-6jf8
- Sources
- NVDJSONOSV GHSA-4x5r-pxfx-6jf8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | 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 | security-advisories@github.com (Secondary) | 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 |
| OSV | GitHub | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | babel | babelcpe:2.3:a:babel:babel:*:*:*:*:*:*:*:* |
< 7.29.6 | 7.29.6 |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha0:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha1:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha10:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha11:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha12:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha13:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha14:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha15:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha16:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha17:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha2:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha3:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha4:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha5:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha6:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha7:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha8:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:alpha9:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:beta0:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:beta1:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:beta2:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:beta3:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:beta4:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:rc1:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:rc2:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:rc3:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:rc4:*:*:*:*:*:* |
= 8.0.0 | |
| NVD | babel | babelcpe:2.3:a:babel:babel:8.0.0:rc5:*:*:*:*:*:* |
= 8.0.0 | |
| OSV | npm | @babel/core | >= 8.0.0-alpha.0, < 8.0.0-rc.6 | 8.0.0-rc.6 |
| OSV | npm | @babel/core | < 7.29.6 | 7.29.6 |
References
- https://github.com/babel/babel/security/advisories/GHSA-4x5r-pxfx-6jf8 · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-49356 · ADVISORY
- https://babeljs.io/docs/options#inputsourcemap · WEB
- https://github.com/babel/babel · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 22 Jun 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 15 Jun 2026)