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.
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.
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.
## Impact
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.**
## Patches
The vulnerability has been fixed in `@babel/[email protected]` and `@babel/[email protected]`.
## Workarounds
Callers can mitigate the issue without upgrading by setting [`inputSourceMap: false`](https://babeljs.io/docs/options#inputsourcemap) in their Babel options.
Callers can also manually extract the `#sourceMappingURL` comment from the input source code, validate whether the source map that it links to is allowed to be read, and if it is pass an object to `inputSourceMap` (passing `false` when it's not).
## Credits
Thanks Teodor-Cristian Radoi for reporting the vulnerability.
EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.
Original publisher date fields
datePublished: Jun 22, 2026, 4:07:01 PM
dateUpdated: Jun 22, 2026, 5:23:03 PM
4 related source bulletins · separate from aliases
openSUSE-SU-2026:21448-1: Security update for agama-web-ui
msrc_CVE-2026-49356: Babel: Arbitrary File Read via sourceMappingURL Comment in @babel/core
CVE-2026-49356
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Analyzed
Weakness classifications: CWE-22 · CWE-200
Original publisher date fields
published: 2026-06-22T18:16:41.107
lastModified: 2026-06-26T20:04:23.897
29 source CPE criteria · context only
cpe:2.3:a:babel:babel:*:*:*:*:*:*:*:*
cpe: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:*:*:*:*:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.