Update dependency @babel/runtime to v7.26.10 [SECURITY] #7314
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
This PR contains the following updates:
7.25.6->7.26.10GitHub Vulnerability Alerts
CVE-2025-27789
Impact
When using Babel to compile regular expression named capturing groups, Babel will generate a polyfill for the
.replacemethod that has quadratic complexity on some specific replacement pattern strings (i.e. the second argument passed to.replace).Your generated code is vulnerable if all the following conditions are true:
.replacemethod on a regular expression that contains named capturing groups.replaceIf you are using
@babel/preset-envwith thetargetsoption, the transform that injects the vulnerable code is automatically enabled if:You can verify what transforms
@babel/preset-envis using by enabling thedebugoption.Patches
This problem has been fixed in
@babel/helpersand@babel/runtime7.26.10 and 8.0.0-alpha.17, please upgrade. It's likely that you do not directly depend on@babel/helpers, and instead you depend on@babel/core(which itself depends on@babel/helpers). Upgrading to@babel/core7.26.10 is not required, but it guarantees that you are on a new enough@babel/helpersversion.Please note that just updating your Babel dependencies is not enough: you will also need to re-compile your code.
Workarounds
If you are passing user-provided strings as the second argument of
.replaceon regular expressions that contain named capturing groups, validate the input and make sure it does not contain the substring$<if it's then not followed by>(possibly with other characters in between).References
This vulnerability was reported and fixed in https://github.com/babel/babel/pull/17173.
Release Notes
babel/babel (@babel/runtime)
v7.26.10Compare Source
👓 Spec Compliance
babel-parser🐛 Bug Fix
babel-parser,babel-templatebabel-corebabel-parser,babel-plugin-transform-typescriptbabel-traversebabel-generatorabstract override(@liuxingbaoyu)babel-parserbabel-helpers,babel-runtime,babel-runtime-corejs2,babel-runtime-corejs3💅 Polish
babel-standalone🏠 Internal
babel-parserv7.26.9Compare Source
🐛 Bug Fix
babel-typesTSPropertySignature.kind(@liuxingbaoyu)babel-generator,babel-types🏠 Internal
babel-types.tsfiles with explicit reexports to solve name conflicts (@nicolo-ribaudo)babel-core@types/gensyncin Babel 7 (@nicolo-ribaudo)v7.26.7Compare Source
🐛 Bug Fix
babel-helpers,babel-preset-env,babel-runtime-corejs3babel-plugin-transform-typeof-symboltypeofin arrow functions (@liuxingbaoyu)babel-parserrangesoption in estree method value (@JLHwung)babel-corebabel-plugin-transform-typescriptbabel-plugin-transform-typescript,babel-traverse,babel-typesimport x = y.z(@liuxingbaoyu)v7.26.0Compare Source
🚀 New Feature
babel-core,babel-generator,babel-parser,babel-plugin-syntax-import-assertions,babel-plugin-syntax-import-attributes,babel-preset-env,babel-standalone,babel-typesbabel-corebabel-compat-data,babel-plugin-proposal-regexp-modifiers,babel-plugin-transform-regexp-modifiers,babel-preset-env,babel-standalonetransform-regexp-modifierstopreset-env(@JLHwung)babel-parserstartIndexparser option (@DylanPiercey)babel-generator,babel-parser,babel-plugin-syntax-flowbabel-helpers,babel-preset-typescript,babel-runtime-corejs3import()inrewriteImportExtensions(@liuxingbaoyu)babel-generator,babel-parser@babel/generator(@nicolo-ribaudo)🐛 Bug Fix
babel-core💅 Polish
babel-plugin-proposal-json-modules,babel-plugin-transform-json-modules,babel-standaloneproposal-json-modulestotransform-json-modules(@nicolo-ribaudo)🏠 Internal
babel-code-frame,babel-highlight@babel/highlightin@babel/code-frame(@nicolo-ribaudo)babel-generator,babel-parser,babel-typeskindtoTSModuleDeclaration(@liuxingbaoyu)🏃♀️ Performance
babel-helper-module-transforms,babel-plugin-transform-modules-commonjsv7.25.9Compare Source
🐛 Bug Fix
babel-parser,babel-template,babel-typessyntacticPlaceholdersmode (@liuxingbaoyu)babel-helper-compilation-targets,babel-preset-envClassAccessorPropertyto prevent theno-undefrule (@victorenator)🏠 Internal
babel-helper-transform-fixture-test-runner🏃♀️ Performance
babel-parser,babel-typesVISITOR_KEYSetc. faster to access (@liuxingbaoyu)v7.25.7Compare Source
🐛 Bug Fix
babel-helper-validator-identifierbabel-traversebabel-plugin-transform-classessuper()check (@nicolo-ribaudo)babel-generatorinferin compact mode (@nicolo-ribaudo)[no LineTerminator here]after nodes (@nicolo-ribaudo)💅 Polish
babel-types🏠 Internal
babel-core--experimental-require-module(@nicolo-ribaudo)babel-helper-compilation-targets,babel-helper-plugin-utils,babel-preset-envbabel-plugin-proposal-destructuring-private,babel-plugin-syntax-decimal,babel-plugin-syntax-import-reflection,babel-standalonebabel-generator[no LineTerminator here]before nodes (@nicolo-ribaudo)🏃♀️ Performance
babel-plugin-transform-typescriptbabel-typesBABEL_TYPES_8_BREAKINGat startup (@nicolo-ribaudo)Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.