Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-45133

CRITICAL 9.4EPSS 30%

Babel vulnerable to arbitrary code execution when compiling specifically crafted malicious code

Also known as GHSA-67hx-6x53-jw92

Mitigation

  • Upgrade @babel/traverse to one of 7.23.2, 8.0.0-alpha.4 (or later in the same release line).

Who should check

  • Projects that depend on npm package @babel/traverse (< 7.23.2)
  • Projects that depend on npm package babel-traverse
  • Anyone running babel < 7.23.2; >= 8.0.0-alpha.0, < 8.0.0-alpha.4

Vulnerability facts

Affected
@babel/traverse < 7.23.2; babel-traverse
Fixed in
7.23.2, 8.0.0-alpha.4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
9.4 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.43% chance of exploitation in 30 days (percentile 30, 2026-11-26)
CWE
CWE-184
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
npm @babel/traverse< 7.23.27.23.2, 8.0.0-alpha.4osv
npm babel-traverse——osv
babel< 7.23.2; >= 8.0.0-alpha.0, < 8.0.0-alpha.4—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2023-45133. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-45133.md
Affected: @babel/traverse < 7.23.2; babel-traverse
Fixed in: 7.23.2, 8.0.0-alpha.4

Steps:
1. Search this machine and project for @babel/traverse (npm), babel-traverse (npm), babel: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2023-45133 being exploited?

There is no confirmed exploitation: CVE-2023-45133 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.43% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2023-45133?

Critical: CVSS 9.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2023-45133?

@babel/traverse < 7.23.2; babel-traverse.

Is there a fix for CVE-2023-45133?

Yes. Fixed in 7.23.2, 8.0.0-alpha.4. Upgrade @babel/traverse to one of 7.23.2, 8.0.0-alpha.4 (or later in the same release line).

How do I check if I'm affected by CVE-2023-45133?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors