[Security] Bump @babel/traverse from 7.18.8 to 7.23.2 in /frontend
Bumps @babel/traverse from 7.18.8 to 7.23.2. This update includes a security fix.
Vulnerabilities fixed
Babel vulnerable to arbitrary code execution when compiling specifically crafted malicious code
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()
orpath.evaluateTruthy()
internal Babel methods.Known affected plugins are:
@babel/plugin-transform-runtime
@babel/preset-env
when using itsuseBuiltIns
option- Any "polyfill provider" plugin that depends on
@babel/helper-define-polyfill-provider
, such asbabel-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
... (truncated)
Patched versions: 7.23.2 Affected versions: < 7.23.2
Release notes
Sourced from @babel/traverse
's releases.
v7.23.2 (2023-10-11)
NOTE: This release also re-publishes
@babel/core
, even if it does not appear in the linked release commit.Thanks
@jimmydief
for your first PR!
🐛 Bug Fix
babel-traverse
- #16033 Only evaluate own String/Number/Math methods (
@nicolo-ribaudo
)babel-preset-typescript
- #16022 Rewrite
.tsx
extension when usingrewriteImportExtensions
(@jimmydief
)babel-helpers
babel-helpers
,babel-plugin-transform-modules-commonjs
,babel-runtime-corejs2
,babel-runtime-corejs3
,babel-runtime
- #16025 Avoid override mistake in namespace imports (
@nicolo-ribaudo
)Committers: 5
- Babel Bot (
@babel-bot
)- Huáng Jùnliàng (
@JLHwung
)- James Diefenderfer (
@jimmydief
)- Nicolò Ribaudo (
@nicolo-ribaudo
)@liuxingbaoyu
v7.23.1 (2023-09-25)
Re-publishing
@babel/helpers
due to a publishing error in 7.23.0.v7.23.0 (2023-09-25)
Thanks
@lorenzoferre
and@RajShukla1
for your first PRs!
🚀 New Feature
babel-plugin-proposal-import-wasm-source
,babel-plugin-syntax-import-source
,babel-plugin-transform-dynamic-import
- #15870 Support transforming
import source
for wasm (@nicolo-ribaudo
)babel-helper-module-transforms
,babel-helpers
,babel-plugin-proposal-import-defer
,babel-plugin-syntax-import-defer
,babel-plugin-transform-modules-commonjs
,babel-runtime-corejs2
,babel-runtime-corejs3
,babel-runtime
,babel-standalone
- #15878 Implement
import defer
proposal transform support (@nicolo-ribaudo
)babel-generator
,babel-parser
,babel-types
- #15845 Implement
import defer
parsing support (@nicolo-ribaudo
)- #15829 Add parsing support for the "source phase imports" proposal (
@nicolo-ribaudo
)babel-generator
,babel-helper-module-transforms
,babel-parser
,babel-plugin-transform-dynamic-import
,babel-plugin-transform-modules-amd
,babel-plugin-transform-modules-commonjs
,babel-plugin-transform-modules-systemjs
,babel-traverse
,babel-types
babel-standalone
babel-helper-function-name
,babel-helper-member-expression-to-functions
,babel-helpers
,babel-parser
,babel-plugin-proposal-destructuring-private
,babel-plugin-proposal-optional-chaining-assign
,babel-plugin-syntax-optional-chaining-assign
,babel-plugin-transform-destructuring
,babel-plugin-transform-optional-chaining
,babel-runtime-corejs2
,babel-runtime-corejs3
,babel-runtime
,babel-standalone
,babel-types
- #15751 Add support for optional chain in assignments (
@nicolo-ribaudo
)babel-helpers
,babel-plugin-proposal-decorators
- #15895 Implement the "decorator metadata" proposal (
@nicolo-ribaudo
)babel-traverse
,babel-types
- #15893 Add
t.buildUndefinedNode
(@liuxingbaoyu
)babel-preset-typescript
... (truncated)
Changelog
Sourced from @babel/traverse
's changelog.
v7.23.2 (2023-10-11)
🐛 Bug Fix
babel-traverse
- #16033 Only evaluate own String/Number/Math methods (
@nicolo-ribaudo
)babel-preset-typescript
- #16022 Rewrite
.tsx
extension when usingrewriteImportExtensions
(@jimmydief
)babel-helpers
babel-helpers
,babel-plugin-transform-modules-commonjs
,babel-runtime-corejs2
,babel-runtime-corejs3
,babel-runtime
- #16025 Avoid override mistake in namespace imports (
@nicolo-ribaudo
)v7.23.0 (2023-09-25)
🚀 New Feature
babel-plugin-proposal-import-wasm-source
,babel-plugin-syntax-import-source
,babel-plugin-transform-dynamic-import
- #15870 Support transforming
import source
for wasm (@nicolo-ribaudo
)babel-helper-module-transforms
,babel-helpers
,babel-plugin-proposal-import-defer
,babel-plugin-syntax-import-defer
,babel-plugin-transform-modules-commonjs
,babel-runtime-corejs2
,babel-runtime-corejs3
,babel-runtime
,babel-standalone
- #15878 Implement
import defer
proposal transform support (@nicolo-ribaudo
)babel-generator
,babel-parser
,babel-types
- #15845 Implement
import defer
parsing support (@nicolo-ribaudo
)- #15829 Add parsing support for the "source phase imports" proposal (
@nicolo-ribaudo
)babel-generator
,babel-helper-module-transforms
,babel-parser
,babel-plugin-transform-dynamic-import
,babel-plugin-transform-modules-amd
,babel-plugin-transform-modules-commonjs
,babel-plugin-transform-modules-systemjs
,babel-traverse
,babel-types
babel-standalone
babel-helper-function-name
,babel-helper-member-expression-to-functions
,babel-helpers
,babel-parser
,babel-plugin-proposal-destructuring-private
,babel-plugin-proposal-optional-chaining-assign
,babel-plugin-syntax-optional-chaining-assign
,babel-plugin-transform-destructuring
,babel-plugin-transform-optional-chaining
,babel-runtime-corejs2
,babel-runtime-corejs3
,babel-runtime
,babel-standalone
,babel-types
- #15751 Add support for optional chain in assignments (
@nicolo-ribaudo
)babel-helpers
,babel-plugin-proposal-decorators
- #15895 Implement the "decorator metadata" proposal (
@nicolo-ribaudo
)babel-traverse
,babel-types
- #15893 Add
t.buildUndefinedNode
(@liuxingbaoyu
)babel-preset-typescript
- #15913 Add
rewriteImportExtensions
option to TS preset (@nicolo-ribaudo
)babel-parser
- #15896 Allow TS tuples to have both labeled and unlabeled elements (
@yukukotani
)
🐛 Bug Fix
babel-plugin-transform-block-scoping
- #15962 fix:
transform-block-scoping
captures the variables of the method in the loop (@liuxingbaoyu
)
💅 Polish
babel-traverse
- #15797 Expand evaluation of global built-ins in
@babel/traverse
(@lorenzoferre
)babel-plugin-proposal-explicit-resource-management
- #15985 Improve source maps for blocks with
using
declarations (@nicolo-ribaudo
)
🔬 Output optimization
babel-core
,babel-helper-module-transforms
,babel-plugin-transform-async-to-generator
,babel-plugin-transform-classes
,babel-plugin-transform-dynamic-import
,babel-plugin-transform-function-name
,babel-plugin-transform-modules-amd
,babel-plugin-transform-modules-commonjs
,babel-plugin-transform-modules-umd
,babel-plugin-transform-parameters
,babel-plugin-transform-react-constant-elements
,babel-plugin-transform-react-inline-elements
,babel-plugin-transform-runtime
,babel-plugin-transform-typescript
,babel-preset-env
- #15984 Inline
exports.XXX =
update in simple variable declarations (@nicolo-ribaudo
)v7.22.20 (2023-09-16)
... (truncated)
Commits
-
b4b9942
v7.23.2 -
b13376b
Only evaluate own String/Number/Math methods (#16033) -
ca58ec1
v7.23.0 -
0f333da
AddcreateImportExpressions
parser option (#15682) -
3744545
Fix linting -
c7e6806
Addt.buildUndefinedNode
(#15893) -
38ee8b4
Expand evaluation of global built-ins in@babel/traverse
(#15797) -
9f3dfd9
v7.22.20 -
3ed28b2
Fully support||
and&&
inpluginToggleBooleanFlag
(#15961) -
77b0d73
v7.22.19 - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot rebase
will rebase this MR -
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts