Babel
Improper Control of Generation of Code when compiling specifically crafted malicious code with @babel/plugin-transform-modules-systemjs
Babel is a compiler for writing next generation JavaScript. From 7.12.0 to before 7.29.4 and 8.0.0-alpha.13, using Babel to compile code that was specifically crafted by an attacker can cause Babel to generate output code that executes arbitrary code. This vulnerability is fixed in 7.29.4 and 8.0.0-alpha.13.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.2high · scored by CNA · CWE-94
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
babel babel
- >= 7.12.0, < 7.29.4
- >= 8.0.0-alpha.0, < 8.0.0-alpha.13
Fixed in 7.29.4, 8.0.0-alpha.13
@babel plugin-transform-modules-systemjs
- >= 7.12.0, < 7.29.4
- >= 8.0.0-alpha.0, < 8.0.0-alpha.13
Fixed in 7.29.4, 8.0.0-alpha.13
Mitigation
Upgrade babel to 7.29.4 or 8.0.0-alpha.13 or later.
Upgrade plugin-transform-modules-systemjs to 7.29.4 or 8.0.0-alpha.13 or later.
References
- Vendor advisory github.com/babel/babel/security/advisories/GHS…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.