VDB

CVE-2023-45133

CVE-2023-45133 PUBLISHED CVSS 9.4 CRITICAL

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.

PackageEcosystemFixed in
@babel/traversenpm8.0.0-alpha.4, 7.23.2
awxChainguard24.6.1-r42
arangodb-3.11Chainguard3.11.14.4-r6
babel-preset-envbabeljs7.23.2
babel-plugin-polyfill-regeneratorbabeljs0.5.3
babel-plugin-transform-runtimebabeljs7.23.2
babel-plugin-polyfill-es-shimsbabeljs0.10.0
babel-plugin-polyfill-corejs3babeljs0.8.5
babel-helper-define-polyfill-providerbabeljs0.4.3

Risk scores

CVSS 3.1
9.4
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Affected products

VendorProductVersions
babelbabel< 7.23.2, >= 8.0.0-alpha.0, < 8.0.0-alpha.4
chainguardawx0
chainguardarangodb-3.110
npmbabel0
npmbabel-traverse0
npmbabel-plugin-transform-runtime0
npmbabel-plugin-polyfill-regenerator0
babelbabel0, 8.0.0-alpha.0
npmbabel-preset-env0
npmbabel-plugin-polyfill-corejs20
npmbabel-plugin-polyfill-corejs30
babeltraverse0, 8.0.0-alpha.0
npmbabel-plugin-polyfill-es-shims0
babelhelper-define-polyfill-provider0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›