6.2
MEDIUM
CVE-2025-27789
Babel Regular Expression Named Capturing Group Quadratic Complexity Vulnerability
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.

INFO

Published Date :

March 11, 2025, 8:15 p.m.

Last Modified :

March 11, 2025, 8:15 p.m.

Remotely Exploitable :

No

Impact Score :

3.6

Exploitability Score :

2.5
Public PoC/Exploit Available at Github

CVE-2025-27789 has a 3 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2025-27789 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2025-27789.

URL Resource
https://github.com/babel/babel/pull/17173
https://github.com/babel/babel/security/advisories/GHSA-968p-4wvh-cqc8

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Development repo for the new Sample Asset Website

JavaScript TypeScript PostScript CSS

Updated: 1 week, 3 days ago
0 stars 0 fork 0 watcher
Born at : June 23, 2025, 6:50 a.m. This repo has been linked 1 different CVEs too.

None

JavaScript HTML CSS TypeScript

Updated: 3 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : March 20, 2025, 9:49 p.m. This repo has been linked 6 different CVEs too.

Staging repo for new Render Fidelity website. Name will be changed after approval.

JavaScript TypeScript PostScript CSS

Updated: 2 months ago
2 stars 2 fork 2 watcher
Born at : Feb. 24, 2025, 9:18 p.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-27789 vulnerability anywhere in the article.

  • Cyber Security News
Splunk Address Third-Party Packages Vulnerabilities in SOAR Versions – Update Now

Splunk has released critical security updates addressing multiple vulnerabilities in third-party packages in SOAR versions 6.4.0 and 6.4. Published on July 7, 2025, this comprehensive security update ... Read more

Published Date: Jul 09, 2025 (4 days, 22 hours ago)

The following table lists the changes that have been made to the CVE-2025-27789 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by [email protected]

    Mar. 11, 2025

    Action Type Old Value New Value
    Added 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.
    Added CVSS V3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
    Added CWE CWE-1333
    Added Reference https://github.com/babel/babel/pull/17173
    Added Reference https://github.com/babel/babel/security/advisories/GHSA-968p-4wvh-cqc8
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-27789 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-27789 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
© cvefeed.io
Latest DB Update: Jul. 14, 2025 11:44