NodeJS/@babel/traverse/7.10.5
The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes
https://www.npmjs.com/package/@babel/traverse
MIT
1 Security Vulnerabilities
Babel vulnerable to arbitrary code execution when compiling specifically crafted malicious code
- https://github.com/babel/babel/security/advisories/GHSA-67hx-6x53-jw92
- https://nvd.nist.gov/vuln/detail/CVE-2023-45133
- https://github.com/babel/babel/pull/16033
- https://github.com/babel/babel/commit/b13376b346946e3f62fc0848c1d2a23223314c82
- https://github.com/babel/babel/releases/tag/v7.23.2
- https://github.com/babel/babel/releases/tag/v8.0.0-alpha.4
- https://github.com/advisories/GHSA-67hx-6x53-jw92
- https://www.debian.org/security/2023/dsa-5528
- https://lists.debian.org/debian-lts-announce/2023/10/msg00026.html
- https://babeljs.io/blog/2023/10/16/cve-2023-45133
Impact
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
- 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.
Patches
The vulnerability has been fixed in @babel/traverse@7.23.2.
Babel 6 does not receive security fixes anymore (see Babel's security policy), hence there is no patch planned for babel-traverse@6.
Workarounds
- Upgrade
@babel/traverseto v7.23.2 or higher. You can do this by deleting it from your package manager's lockfile and re-installing the dependencies.@babel/core>=7.23.2 will automatically pull in a non-vulnerable version. - If you cannot upgrade
@babel/traverseand are using one of the affected packages mentioned above, upgrade them to their latest version to avoid triggering the vulnerable code path in affected@babel/traverseversions:@babel/plugin-transform-runtimev7.23.2@babel/preset-envv7.23.2@babel/helper-define-polyfill-providerv0.4.3babel-plugin-polyfill-corejs2v0.4.6babel-plugin-polyfill-corejs3v0.8.5babel-plugin-polyfill-es-shimsv0.10.0babel-plugin-polyfill-regeneratorv0.5.3
207 Other Versions
| Version | License | Security | Released | |
|---|---|---|---|---|
| 8.0.0-beta.3 | MIT | 2025-10-23 - 14:45 | 3 days | |
| 8.0.0-beta.2 | MIT | 2025-09-05 - 15:06 | about 2 months | |
| 8.0.0-beta.1 | MIT | 2025-07-02 - 09:04 | 4 months | |
| 8.0.0-beta.0 | MIT | 2025-05-30 - 15:51 | 5 months | |
| 8.0.0-alpha.17 | MIT | 2025-03-11 - 18:25 | 8 months | |
| 8.0.0-alpha.16 | MIT | 2025-02-14 - 11:59 | 8 months | |
| 8.0.0-alpha.15 | MIT | 2025-01-10 - 17:24 | 10 months | |
| 8.0.0-alpha.14 | MIT | 2024-12-06 - 16:54 | 11 months | |
| 8.0.0-alpha.13 | MIT | 2024-10-25 - 13:54 | about 1 year | |
| 8.0.0-alpha.12 | MIT | 2024-07-26 - 17:33 | over 1 year | |
| 8.0.0-alpha.11 | MIT | 2024-06-07 - 09:15 | over 1 year | |
| 8.0.0-alpha.10 | MIT | 2024-06-04 - 11:20 | over 1 year | |
| 8.0.0-alpha.9 | MIT | 2024-06-03 - 14:04 | over 1 year | |
| 8.0.0-alpha.8 | MIT | 2024-04-04 - 13:20 | over 1 year | |
| 8.0.0-alpha.7 | MIT | 2024-02-28 - 14:05 | over 1 year | |
| 8.0.0-alpha.6 | MIT | 2024-01-26 - 16:14 | over 1 year | |
| 8.0.0-alpha.5 | MIT | 2023-12-11 - 15:19 | almost 2 years | |
| 8.0.0-alpha.4 | MIT | 2023-10-12 - 02:06 | about 2 years | |
| 8.0.0-alpha.3 | MIT | 1 | 2023-09-26 - 14:57 | about 2 years |
| 8.0.0-alpha.2 | MIT | 1 | 2023-08-09 - 15:15 | about 2 years |
| 8.0.0-alpha.1 | MIT | 1 | 2023-07-24 - 17:53 | over 2 years |
| 8.0.0-alpha.0 | MIT | 1 | 2023-07-20 - 14:00 | over 2 years |
| 7.28.5 | MIT | 2025-10-23 - 15:17 | 3 days | |
| 7.28.4 | MIT | 2025-09-05 - 14:53 | about 2 months | |
| 7.28.3 | MIT | 2025-08-14 - 12:36 | 2 months | |
| 7.28.0 | MIT | 2025-07-02 - 08:38 | 4 months | |
| 7.27.7 | MIT | 2025-06-26 - 14:03 | 4 months | |
| 7.27.4 | MIT | 2025-05-30 - 15:01 | 5 months | |
| 7.27.3 | MIT | 2025-05-27 - 08:39 | 5 months | |
| 7.27.1 | MIT | 2025-04-30 - 15:09 | 6 months | |
| 7.27.0 | MIT | 2025-03-24 - 17:41 | 7 months | |
| 7.26.10 | MIT | 2025-03-11 - 17:55 | 8 months | |
| 7.26.9 | MIT | 2025-02-14 - 11:48 | 8 months | |
| 7.26.8 | MIT | 2025-02-08 - 09:59 | 9 months | |
| 7.26.7 | MIT | 2025-01-24 - 15:05 | 9 months | |
| 7.26.5 | MIT | 2025-01-10 - 17:11 | 10 months | |
| 7.26.4 | MIT | 2024-12-05 - 18:05 | 11 months | |
| 7.26.3 | MIT | 2024-12-04 - 12:35 | 11 months | |
| 7.25.9 | MIT | 2024-10-22 - 15:21 | about 1 year | |
| 7.25.7 | MIT | 2024-10-02 - 15:15 | about 1 year | |
| 7.25.6 | MIT | 2024-08-29 - 10:14 | about 1 year | |
| 7.25.4 | MIT | 2024-08-22 - 09:34 | about 1 year | |
| 7.25.3 | MIT | 2024-07-31 - 12:25 | about 1 year | |
| 7.25.2 | MIT | 2024-07-30 - 02:54 | about 1 year | |
| 7.25.1 | MIT | 2024-07-28 - 19:36 | about 1 year | |
| 7.25.0 | MIT | 2024-07-26 - 16:59 | over 1 year | |
| 7.24.8 | MIT | 2024-07-11 - 14:54 | over 1 year | |
| 7.24.7 | MIT | 2024-06-05 - 13:15 | over 1 year | |
| 7.24.6 | MIT | 2024-05-24 - 12:25 | over 1 year | |
| 7.24.5 | MIT | 2024-04-29 - 18:34 | over 1 year |
