Inefficient RexExp complexity in generated code with .replace when transpiling named capturing groups
Exploitation and risk
Source statusCISA KEV lists vulnerabilities known to be exploited. FIRST EPSS estimates the likelihood of exploitation in the next 30 days. An unavailable score does not mean zero risk.
Which CVEs have scores here?
This view includes predictions for CVE identifiers explicitly listed in public NuGet advisories. Microsoft release pages have their own prediction coverage. Check source status for the scope and latest checks.
No exploitation or prediction data is available here for these CVEs. This does not mean they are safe or unlikely to be exploited.
cve-program · CVE-2025-27789
PublishedBabel 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 published
- 11 Mar 2025 19:09:28 UTC
- Source modified
- 11 Mar 2025 19:53:42 UTC
- Saved here
- 23 Oct 2026 15:48:27 UTC
- Source terms
- CVE Program Terms of Use
Original source record · Cite this exact observation · Complete original publisher JSON
Source: cve-program · CVE Program Terms of Use. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
CVSS 3.1 · 6.2 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
euvd · EUVD-2025-7806
PublishedBabel 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.
Additional publisher context
EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.
Original publisher date fields
datePublished: Mar 11, 2025, 7:09:28 PM
dateUpdated: Mar 11, 2025, 7:53:42 PM
8 related source bulletins · separate from aliases
WID-SEC-W-2025-0823: Oracle Communications: Mehrere Schwachstellen
CVE-2023-49582 · CVE-2023-51074 · CVE-2023-5388 · CVE-2023-5685 · CVE-2024-1135 · CVE-2024-12797 · CVE-2024-21538 · CVE-2024-25638 · CVE-2024-28168 · CVE-2024-28219 · CVE-2024-28834 · CVE-2024-34064 · CVE-2024-35195 · CVE-2024-37891 · CVE-2024-38819 · CVE-2024-38827 · CVE-2024-40896 · CVE-2024-4227 · CVE-2024-43044 · CVE-2024-47072 · CVE-2024-47554 · CVE-2024-49767 · CVE-2024-50602 · CVE-2024-52046 · CVE-2024-52303 · CVE-2024-5535 · CVE-2024-56128 · CVE-2024-56337 · CVE-2024-57699 · CVE-2024-6763 · CVE-2024-7254 · CVE-2025-1974 · CVE-2025-23184 · CVE-2025-24813 · CVE-2025-24928 · CVE-2025-24970 · CVE-2025-27516 · CVE-2025-27789 · CVE-2025-31721
WID-SEC-W-2025-1617: IBM Cognos Analytics: Mehrere Schwachstellen
CVE-2025-36062 · CVE-2025-36106 · CVE-2025-36107 · CVE-2025-27789 · CVE-2025-36057
WID-SEC-W-2025-0998: IBM App Connect Enterprise Certified Container: Mehrere Schwachstellen
CVE-2024-6827 · CVE-2025-1194 · CVE-2025-32996 · CVE-2025-32997 · CVE-2025-27152 · CVE-2025-27789 · CVE-2025-1993
WID-SEC-W-2025-1309: IBM Tivoli Netcool/OMNIbus: Schwachstelle ermöglicht Denial of Service
CVE-2025-27789
NCSC-2025-0124: Kwetsbaarheden verholpen in Oracle Communications
CVE-2023-5388 · CVE-2023-5685 · CVE-2023-49582 · CVE-2023-51074 · CVE-2024-1135 · CVE-2024-4227 · CVE-2024-5535 · CVE-2024-6763 · CVE-2024-7254 · CVE-2024-11053 · CVE-2024-12797 · CVE-2024-12798 · CVE-2024-21538 · CVE-2024-25638 · CVE-2024-28168 · CVE-2024-28219 · CVE-2024-28834 · CVE-2024-31141 · CVE-2024-34064 · CVE-2024-35195 · CVE-2024-37891 · CVE-2024-38819 · CVE-2024-38827 · CVE-2024-40896 · CVE-2024-43044 · CVE-2024-43709 · CVE-2024-43796 · CVE-2024-47072 · CVE-2024-47554 · CVE-2024-49767 · CVE-2024-50602 · CVE-2024-52046 · CVE-2024-52303 · CVE-2024-53122 · CVE-2024-56128 · CVE-2024-56337 · CVE-2024-57699 · CVE-2025-1974 · CVE-2025-23084 · CVE-2025-23184 · CVE-2025-24813 · CVE-2025-24928 · CVE-2025-24970 · CVE-2025-27516 · CVE-2025-27789 · CVE-2025-30729 · CVE-2025-31721
WID-SEC-W-2025-0705: HCL BigFix WebUI-Anwendungen: Mehrere Schwachstellen
CVE-2024-47764 · CVE-2025-25977 · CVE-2025-27152 · CVE-2025-27789 · CVE-2025-29774 · CVE-2025-29775
msrc_CVE-2025-27789: Inefficient RexExp complexity in generated code with .replace when transpiling named capturing groups
CVE-2025-27789
WID-SEC-W-2025-0930: IBM Business Automation Workflow: Mehrere Schwachstellen
CVE-2024-55565 · CVE-2025-1495 · CVE-2025-1838 · CVE-2025-27152 · CVE-2025-27789
- Source published
- Mar 11, 2025, 7:09:28 PM (timezone not stated)
- Source modified
- Mar 11, 2025, 7:53:42 PM (timezone not stated)
- Saved here
- 15 Nov 2026 08:30:17 UTC
- Source terms
- ENISA EUVD · source terms and attribution apply
Original source record · Cite this exact observation · Complete original publisher JSON
Source: euvd · ENISA EUVD · source terms and attribution apply. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
EUVD CVSS 3.1 · 6.2 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvd · CVE-2025-27789
PublishedBabel 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.
Additional publisher context
NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Deferred
Weakness classifications: CWE-1333
Original publisher date fields
published: 2025-03-11T20:15:18.330
lastModified: 2026-06-17T09:04:13.763
- Source published
- 11 Mar 2025 20:15:18 UTC
- Source modified
- 17 Jun 2026 09:04:13 UTC
- Saved here
- 25 Oct 2026 02:24:42 UTC
- Source terms
- NIST NVD usage terms; underlying source attribution retained
Original source record · Cite this exact observation · Complete original publisher JSON
Source: nvd · NIST NVD usage terms; underlying source attribution retained. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
CVSS 3.1 · [email protected] · Secondary · 6.2 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
osv · GHSA-968p-4wvh-cqc8
Published### Impact When using Babel to compile [regular expression named capturing groups](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Named_capturing_group), 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`). Your generated code is vulnerable if _all_ the following conditions are true: - You use Babel to compile [regular expression named capturing groups](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Named_capturing_group) - You use the `.replace` method on a regular expression that contains named capturing groups - **Your code uses untrusted strings as the second argument of `.replace`** If you are using `@babel/preset-env` with the [`targets`](https://babeljs.io/docs/options#targets) option, the transform that injects the vulnerable code is automatically enabled if: - you use [_duplicated_ named capturing groups](https://github.com/tc39/proposal-duplicate-named-capturing-groups), and target any browser older than Chrome/Edge 126, Opera 112, Firefox 129, Safari 17.4, or Node.js 23 - you use any [named capturing groups](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Named_capturing_group), and target any browser older than Chrome 64, Opera 71, Edge 79, Firefox 78, Safari 11.1, or Node.js 10 You can verify what transforms `@babel/preset-env` is using by enabling the [`debug` option](https://babeljs.io/docs/babel-preset-env#debug). ### Patches This problem has been fixed in `@babel/helpers` and `@babel/runtime` 7.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/core` 7.26.10 is not required, but it guarantees that you are on a new enough `@babel/helpers` version. 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 `.replace` on 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.
- Source published
- 11 Mar 2025 20:30:18 UTC
- Source modified
- 10 Sep 2026 03:50:22 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- GitHub Advisory Database · CC-BY-4.0
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · GitHub Advisory Database · CC-BY-4.0. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
CVSS_V3 · CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher rating · MODERATE