CVE-2023-45133
Reported by github_m · Published October 12, 2023
@babel/traverse is fixed in 8.0.0-alpha.4 and 7.23.2 (npm)
Babel is a compiler for writingJavaScript. In `@babel/traverse` prior to versions 7.23.2 and 8.0.0-alpha.4 and all versions of `babel-traverse`, using Babel to compile code that was specifically crafted by an attacker can lead to arbitrary code execution during compilation, when using plugins that rely on the `path.evaluate()`or `path.evaluateTruthy()` internal Babel methods. Known affected plugins are `@babel/plugin-transform-runtime`; `@babel/preset-env` when using its `useBuiltIns` option; and any "polyfill provider" plugin that depends on `@babel/helper-define-polyfill-provider`, such as `babel-plugin-polyfill-corejs3`, `babel-plugin-polyfill-corejs2`, `babel-plugin-polyfill-es-shims`, `babel-plugin-polyfill-regenerator`. No other plugins under the `@babel/` namespace are impacted, but third-party plugins might be. Users that only compile trusted code are not impacted. The vulnerability has been fixed in `@babel/traverse@7.23.2` and `@babel/traverse@8.0.0-alpha.4`. Those who cannot upgrade `@babel/traverse` and are using one of the affected packages mentioned above should upgrade them to their latest version to avoid triggering the vulnerable code path in affected `@babel/traverse` versions: `@babel/plugin-transform-runtime` v7.23.2, `@babel/preset-env` v7.23.2, `@babel/helper-define-polyfill-provider` v0.4.3, `babel-plugin-polyfill-corejs2` v0.4.6, `babel-plugin-polyfill-corejs3` v0.8.5, `babel-plugin-polyfill-es-shims` v0.10.0, `babel-plugin-polyfill-regenerator` v0.5.3.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| @babel/traverse | npm | 8.0.0-alpha.4, 7.23.2 |
| awx | Chainguard | 24.6.1-r42 |
| arangodb-3.11 | Chainguard | 3.11.14.4-r6 |
| babel-preset-env | babeljs | 7.23.2 |
| babel-plugin-polyfill-regenerator | babeljs | 0.5.3 |
| babel-plugin-transform-runtime | babeljs | 7.23.2 |
| babel-plugin-polyfill-es-shims | babeljs | 0.10.0 |
| babel-plugin-polyfill-corejs3 | babeljs | 0.8.5 |
| babel-helper-define-polyfill-provider | babeljs | 0.4.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| babel | babel | < 7.23.2, >= 8.0.0-alpha.0, < 8.0.0-alpha.4 |
| chainguard | awx | 0 |
| chainguard | arangodb-3.11 | 0 |
| npm | babel | 0 |
| npm | babel-traverse | 0 |
| npm | babel-plugin-transform-runtime | 0 |
| npm | babel-plugin-polyfill-regenerator | 0 |
| babel | babel | 0, 8.0.0-alpha.0 |
| npm | babel-preset-env | 0 |
| npm | babel-plugin-polyfill-corejs2 | 0 |
| npm | babel-plugin-polyfill-corejs3 | 0 |
| babel | traverse | 0, 8.0.0-alpha.0 |
| npm | babel-plugin-polyfill-es-shims | 0 |
| babel | helper-define-polyfill-provider | 0 |
Timeline
- Oct 12, 2023 CVE Published
- Oct 13, 2023 EPSS Score (30 in total, the first dated here)
- Jan 25, 2026 CVE Updated
- Feb 3, 2026 Distribution Patch
- Feb 3, 2026 Security Advisory (5 in total, the first dated here)
- Aug 2, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-45133
vulnetix vdb fixes CVE-2023-45133
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-45133/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/babel/babel/security/advisories/GHSA-67hx-6x53-jw92 x_refsource_CONFIRM
- https://github.com/babel/babel/pull/16033 x_refsource_MISC
- https://github.com/babel/babel/commit/b13376b346946e3f62fc0848c1d2a23223314c82 x_refsource_MISC
- https://github.com/babel/babel/releases/tag/v7.23.2 x_refsource_MISC
- https://github.com/babel/babel/releases/tag/v8.0.0-alpha.4 x_refsource_MISC
- https://github.com/advisories/GHSA-67hx-6x53-jw92 advisory
- https://babeljs.io/blog/2023/10/16/cve-2023-45133 url
- https://github.com/babel/babel url
- Multiples vulnérabilités dans les produits IBM advisory
- Multiples vulnérabilités dans les produits IBM advisory
- https://nvd.nist.gov/vuln/detail/CVE-2023-45133 advisory