| Gói / sản phẩm | Phiên bản bị ảnh hưởng | Phiên bản đã vá |
|---|---|---|
| babel | = 8.0.0< 7.29.6 | 7.29.6 |
| @babel/core | ≥ 8.0.0-alpha.0, < 8.0.0-rc.6< 7.29.6 | 8.0.0-rc.67.29.6 |
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:
Users that only compile trusted code are not impacted.
The vulnerability has been fixed in @babel/[email protected] and @babel/[email protected].
Callers can mitigate the issue without upgrading by setting inputSourceMap: false 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).
Thanks Teodor-Cristian Radoi for reporting the vulnerability.
Bạn đang dùng một trong các sản phẩm này? Quét site để biết có đang lộ phiên bản có lỗ hổng không.
Quét site miễn phí