NodeJS/@babel/traverse/7.14.0
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/traverse
to 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/traverse
and 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/traverse
versions:@babel/plugin-transform-runtime
v7.23.2@babel/preset-env
v7.23.2@babel/helper-define-polyfill-provider
v0.4.3babel-plugin-polyfill-corejs2
v0.4.6babel-plugin-polyfill-corejs3
v0.8.5babel-plugin-polyfill-es-shims
v0.10.0babel-plugin-polyfill-regenerator
v0.5.3
180 Other Versions
Version | License | Security | Released | |
---|---|---|---|---|
8.0.0-alpha.12 | MIT | 2024-07-26 - 17:33 | 2 months | |
8.0.0-alpha.11 | MIT | 2024-06-07 - 09:15 | 4 months | |
8.0.0-alpha.10 | MIT | 2024-06-04 - 11:20 | 4 months | |
8.0.0-alpha.9 | MIT | 2024-06-03 - 14:04 | 4 months | |
8.0.0-alpha.8 | MIT | 2024-04-04 - 13:20 | 6 months | |
8.0.0-alpha.7 | MIT | 2024-02-28 - 14:05 | 7 months | |
8.0.0-alpha.6 | MIT | 2024-01-26 - 16:14 | 8 months | |
8.0.0-alpha.5 | MIT | 2023-12-11 - 15:19 | 10 months | |
8.0.0-alpha.4 | MIT | 2023-10-12 - 02:06 | 12 months | |
8.0.0-alpha.3 | MIT | 1 | 2023-09-26 - 14:57 | about 1 year |
8.0.0-alpha.2 | MIT | 1 | 2023-08-09 - 15:15 | about 1 year |
8.0.0-alpha.1 | MIT | 1 | 2023-07-24 - 17:53 | about 1 year |
8.0.0-alpha.0 | MIT | 1 | 2023-07-20 - 14:00 | about 1 year |
7.25.6 | MIT | 2024-08-29 - 10:14 | about 1 month | |
7.25.4 | MIT | 2024-08-22 - 09:34 | about 1 month | |
7.25.3 | MIT | 2024-07-31 - 12:25 | about 2 months | |
7.25.2 | MIT | 2024-07-30 - 02:54 | 2 months | |
7.25.1 | MIT | 2024-07-28 - 19:36 | 2 months | |
7.25.0 | MIT | 2024-07-26 - 16:59 | 2 months | |
7.24.8 | MIT | 2024-07-11 - 14:54 | 3 months | |
7.24.7 | MIT | 2024-06-05 - 13:15 | 4 months | |
7.24.6 | MIT | 2024-05-24 - 12:25 | 4 months | |
7.24.5 | MIT | 2024-04-29 - 18:34 | 5 months | |
7.24.1 | MIT | 2024-03-19 - 09:49 | 6 months | |
7.24.0 | MIT | 2024-02-28 - 11:47 | 7 months | |
7.23.9 | MIT | 2024-01-25 - 16:57 | 8 months | |
7.23.7 | MIT | 2023-12-29 - 20:01 | 9 months | |
7.23.6 | MIT | 2023-12-11 - 13:10 | 10 months | |
7.23.5 | MIT | 2023-11-29 - 10:25 | 10 months | |
7.23.4 | MIT | 2023-11-20 - 14:22 | 10 months | |
7.23.3 | MIT | 2023-11-09 - 07:04 | 11 months | |
7.23.2 | MIT | 2023-10-11 - 18:51 | 12 months | |
7.23.0 | MIT | 1 | 2023-09-25 - 08:11 | about 1 year |
7.22.20 | MIT | 1 | 2023-09-16 - 16:28 | about 1 year |
7.22.19 | MIT | 1 | 2023-09-14 - 16:32 | about 1 year |
7.22.18 | MIT | 1 | 2023-09-14 - 15:59 | about 1 year |
7.22.17 | MIT | 1 | 2023-09-08 - 13:53 | about 1 year |
7.22.15 | MIT | 1 | 2023-09-04 - 12:25 | about 1 year |
7.22.11 | MIT | 1 | 2023-08-24 - 13:08 | about 1 year |
7.22.10 | MIT | 1 | 2023-08-07 - 17:25 | about 1 year |
7.22.8 | MIT | 1 | 2023-07-06 - 12:34 | about 1 year |
7.22.7 | MIT | 1 | 2023-07-06 - 09:04 | about 1 year |
7.22.6 | MIT | 1 | 2023-07-04 - 07:48 | about 1 year |
7.22.5 | MIT | 1 | 2023-06-08 - 18:21 | over 1 year |
7.22.4 | MIT | 1 | 2023-05-29 - 14:26 | over 1 year |
7.22.1 | MIT | 1 | 2023-05-26 - 16:34 | over 1 year |
7.22.0 | MIT | 1 | 2023-05-26 - 13:45 | over 1 year |
7.21.5 | MIT | 1 | 2023-04-28 - 19:50 | over 1 year |
7.21.4 | MIT | 1 | 2023-03-31 - 09:01 | over 1 year |
7.21.4-esm | MIT | 1 | 2023-04-04 - 14:09 | over 1 year |
7.21.4-esm.4 | MIT | 1 | 2023-04-04 - 15:13 | over 1 year |
7.21.4-esm.3 | MIT | 1 | 2023-04-04 - 14:56 | over 1 year |
7.21.4-esm.2 | MIT | 1 | 2023-04-04 - 14:39 | over 1 year |
7.21.4-esm.1 | MIT | 1 | 2023-04-04 - 14:21 | over 1 year |
7.21.3 | MIT | 1 | 2023-03-14 - 14:59 | over 1 year |
7.21.2 | MIT | 1 | 2023-02-23 - 09:31 | over 1 year |
7.21.0 | MIT | 1 | 2023-02-20 - 15:31 | over 1 year |
7.20.13 | MIT | 1 | 2023-01-21 - 14:30 | over 1 year |
7.20.12 | MIT | 1 | 2023-01-04 - 16:02 | over 1 year |
7.20.10 | MIT | 1 | 2022-12-23 - 09:19 | almost 2 years |
7.20.8 | MIT | 1 | 2022-12-22 - 16:33 | almost 2 years |
7.20.7 | MIT | 1 | 2022-12-22 - 09:45 | almost 2 years |
7.20.5 | MIT | 1 | 2022-11-28 - 10:12 | almost 2 years |
7.20.1 | MIT | 1 | 2022-11-01 - 11:25 | almost 2 years |
7.20.0 | MIT | 1 | 2022-10-27 - 13:19 | almost 2 years |
7.19.6 | MIT | 1 | 2022-10-20 - 09:03 | almost 2 years |
7.19.4 | MIT | 1 | 2022-10-10 - 10:47 | almost 2 years |
7.19.3 | MIT | 1 | 2022-09-27 - 18:36 | about 2 years |
7.19.1 | MIT | 1 | 2022-09-14 - 15:29 | about 2 years |
7.19.0 | MIT | 1 | 2022-09-05 - 19:02 | about 2 years |
7.18.13 | MIT | 1 | 2022-08-22 - 16:05 | about 2 years |
7.18.11 | MIT | 1 | 2022-08-04 - 12:45 | about 2 years |
7.18.10 | MIT | 1 | 2022-08-01 - 18:46 | about 2 years |
7.18.9 | MIT | 1 | 2022-07-18 - 09:17 | about 2 years |
7.18.8 | MIT | 1 | 2022-07-08 - 09:32 | about 2 years |
7.18.6 | MIT | 1 | 2022-06-27 - 19:50 | over 2 years |
7.18.5 | MIT | 1 | 2022-06-13 - 06:40 | over 2 years |
7.18.2 | MIT | 1 | 2022-05-25 - 09:16 | over 2 years |
7.18.0 | MIT | 1 | 2022-05-19 - 18:16 | over 2 years |
7.17.12 | MIT | 1 | 2022-05-16 - 19:33 | over 2 years |
7.17.10 | MIT | 1 | 2022-04-29 - 16:37 | over 2 years |
7.17.9 | MIT | 1 | 2022-04-06 - 15:55 | over 2 years |
7.17.3 | MIT | 1 | 2022-02-15 - 15:44 | over 2 years |
7.17.0 | MIT | 1 | 2022-02-02 - 23:05 | over 2 years |
7.16.10 | MIT | 1 | 2022-01-19 - 18:39 | over 2 years |
7.16.8 | MIT | 1 | 2022-01-10 - 21:18 | over 2 years |
7.16.7 | MIT | 1 | 2021-12-31 - 00:22 | over 2 years |
7.16.5 | MIT | 1 | 2021-12-13 - 22:28 | almost 3 years |
7.16.3 | MIT | 1 | 2021-11-09 - 21:53 | almost 3 years |
7.16.0 | MIT | 1 | 2021-10-29 - 23:47 | almost 3 years |
7.15.4 | MIT | 1 | 2021-09-02 - 21:39 | about 3 years |
7.15.0 | MIT | 1 | 2021-08-04 - 21:13 | about 3 years |
7.14.9 | MIT | 1 | 2021-08-01 - 07:53 | about 3 years |
7.14.8 | MIT | 1 | 2021-07-20 - 18:02 | about 3 years |
7.14.7 | MIT | 1 | 2021-06-21 - 21:54 | over 3 years |
7.14.5 | MIT | 1 | 2021-06-09 - 23:13 | over 3 years |
7.14.2 | MIT | 1 | 2021-05-12 - 17:09 | over 3 years |
7.14.0 | MIT | 1 | 2021-04-29 - 20:10 | over 3 years |
7.13.17 | MIT | 1 | 2021-04-20 - 23:19 | over 3 years |
7.13.15 | MIT | 1 | 2021-04-08 - 15:50 | over 3 years |