Vulnerabilities/

Babel has inefficient RegExp complexity in generated code with .replace when transpiling named capturing groups

Severity:
Medium

Description

When using Babel to compile regular expression named capturing groups, Babel will generate a polyfill for the .replace method that has quadratic complexity on some specific replacement pattern strings (i.e. the second argument passed to .replace).

Recommendation

Update the @babel/runtime-corejs3 package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@babel/runtime-corejs3
Anything's wrong? Let us know Last updated on April 16, 2025

This issue is available in SmartScanner Professional

See Pricing