BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2025-27789 in Javascript products

Medium 6.2

Babel is a compiler for writing next generation JavaScript. When using versions of Babel prior to 7.26.10 and 8.0.0-alpha.17 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. ...

Affects 0 products from 1 vendor. Facts below cite their sources.

CVSS 3.16.2
EPSS0.3%
EPSS percentile16th
FixUnknown

Requires local access, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Javascript — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Babel is a compiler for writing next generation JavaScript. When using versions of Babel prior to 7.26.10 and 8.0.0-alpha.17 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`). Generated code is vulnerable if all the following conditions are true: Using Babel to compile regular expression named capturing groups, using the `.replace` method on a regular expression that contains named capturing groups, and the code using untrusted strings as the second argument of `.replace`. This problem has been fixed in `@babel/helpers` and `@babel/runtime` 7.26.10 and 8.0.0-alpha.17. It's likely that individual users do not directly depend on `@babel/helpers`, and instead depend on `@babel/core` (which itself depends on `@babel/helpers`). Upgrading to `@babel/core` 7.26.10 is not required, but it guarantees use of a new enough `@babel/helpers` version. Note that just updating Babel dependencies is not enough; one will also need to re-compile the code. No known workarounds are available.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-27789
BreachSpider IDBS-2025-GLOBAL-249416-M
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published2025-03-11
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-1333: CWE-1333

Related attack patterns (CAPEC)

CAPEC-492 Regular Expression Exponential Blowup via CWE-1333

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

Babel versions prior to 7.26.10 and 8.0.0-alpha.17 are vulnerable to a performance issue due to quadratic complexity in the generated polyfill for the `.replace` method when compiling regular expression named capturing groups. This can lead to denial of service (DoS) attacks by causing excessive CPU usage.

An attacker can exploit this vulnerability by crafting specific replacement pattern strings that trigger the quadratic complexity in the generated code. This can be done by providing malicious input to the Babel-compiled application that uses the `.replace` method with regular expressions containing named capturing groups.

Questions

What is CVE-2025-27789?

Babel versions prior to 7.26.10 and 8.0.0-alpha.17 are vulnerable to a performance issue due to quadratic complexity in the generated polyfill for the `.replace` method when compiling regular expression named capturing groups. This can lead to denial of service (DoS) attacks by causing excessive CPU usage.

What is the CVSS score for CVE-2025-27789?

CVE-2025-27789 has CVSS 6.2 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 0.3%.

Is CVE-2025-27789 actively exploited?

No confirmed active exploitation of CVE-2025-27789 as of 2026-09-25.

How do I remediate CVE-2025-27789?

Priority: HIGH.

What systems are affected by CVE-2025-27789?

CVE-2025-27789 affects Javascript.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Javascript","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.