> CVE-2025-27789 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2025-03-11 20:15
MODIFIED
2025-03-11 20:15
CVSS_SCORE V3
6.2
EPSS (Prob. Exploit)
0.56%
Top 53.9%
DATA SOURCES:
NVD đź”— 2025-10-18 CVE PROJECT đź”— 2026-01-19 FIRST EPSS đź”— 2026-10-25 GITHUB đź”— 2026-11-11 MSRC đź”— 2026-08-08

> 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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Local (L)
Exploit nécessite un accès local au système
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
None (N)
Aucune modification de données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
None
Aucune modification de données possible
Disponibilité
High
Interruption totale du service possible

> GITHUB SECURITY ADVISORY

GHSA-968p-4wvh-cqc8 MODERATE

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

AFFECTED PACKAGES:
NPM / @babel/runtime-corejs3
>= 8.0.0-alpha.0, < 8.0.0-alpha.16
Fixed in: 8.0.0-alpha.17
NPM / @babel/runtime-corejs2
>= 8.0.0-alpha.0, < 8.0.0-alpha.16
Fixed in: 8.0.0-alpha.17
NPM / @babel/runtime
>= 8.0.0-alpha.0, < 8.0.0-alpha.16
Fixed in: 8.0.0-alpha.17
NPM / @babel/helpers
>= 8.0.0-alpha.0, < 8.0.0-alpha.16
Fixed in: 8.0.0-alpha.17
NPM / @babel/runtime-corejs3
< 7.26.10
Fixed in: 7.26.10
NPM / @babel/runtime-corejs2
< 7.26.10
Fixed in: 7.26.10
NPM / @babel/runtime
< 7.26.10
Fixed in: 7.26.10
NPM / @babel/helpers
< 7.26.10
Fixed in: 7.26.10

> HISTORIQUE DES MODIFICATIONS

Première apparition
11/03/2025 20:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 15:01
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME