{"id":"GHSA-4x5r-pxfx-6jf8","revision":"dcb11421d4d14215aa59d2f41014c2c5","records":[{"revision":"dcb11421d4d14215aa59d2f41014c2c5","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-4x5r-pxfx-6jf8","aliases":["CVE-2026-49356"],"title":"@babel/core: Arbitrary File Read via sourceMappingURL Comment","description":"## Impact\n\nUsing `@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:\n- the attacker controls the input source code\n- the attacker can read the output source code\n- the attacker knows the path of the source map file that they want to read\n\n**Users that only compile trusted code are not impacted.**\n\n## Patches\n\nThe vulnerability has been fixed in `@babel/core@7.29.6` and `@babel/core@8.0.0-rc.6`.\n\n## Workarounds\n\nCallers can mitigate the issue without upgrading by setting [`inputSourceMap: false`](https://babeljs.io/docs/options#inputsourcemap) in their Babel options.\n\nCallers 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).\n\n## Credits\n\nThanks Teodor-Cristian Radoi for reporting the vulnerability.","state":0,"publishedAt":"2026-06-15T17:14:14+00:00","modifiedAt":"2026-09-10T03:50:48.2806292+00:00","affected":[{"ecosystem":"npm","name":"@babel/core","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"8.0.0-alpha.0"},{"kind":"fixed","version":"8.0.0-rc.6"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@babel/core","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"7.29.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/babel/babel/security/advisories/GHSA-4x5r-pxfx-6jf8","https://nvd.nist.gov/vuln/detail/CVE-2026-49356","https://babeljs.io/docs/options#inputsourcemap","https://github.com/babel/babel"],"sourceUrl":"https://github.com/advisories/GHSA-4x5r-pxfx-6jf8","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-4x5r-pxfx-6jf8","identifiers":["GHSA-4x5r-pxfx-6jf8","CVE-2026-49356"]},"retained":false,"historicalAffected":[]}],"coverage":[]}