Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

Inefficient RexExp complexity in generated code with .replace when transpiling named capturing groups

CVSS 3.1 6.2 MEDIUMEUVD CVSS 3.1 6.2 CVSS 3.1 · [email protected] · Secondary 6.2 MEDIUMCVSS_V3 Publisher rating MODERATEFixed by @babel/helpers 7.26.10Fixed by @babel/runtime 7.26.10Fixed by @babel/runtime-corejs2 7.26.10Fixed by @babel/runtime-corejs3 7.26.10KEV status unknown

cve-program · CVE-2025-27789

Published

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.

Read the publisher's advisory

euvd · EUVD-2025-7806

Published

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.

Read the publisher's advisory

nvd · CVE-2025-27789

Published

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.

Read the publisher's advisory

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.

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2025-27789

Published

babel

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "vendor": "babel",
                    "product": "babel",
                    "versions": [
                        {
                            "version": "< 7.26.10",
                            "status": "affected"
                        },
                        {
                            "version": ">= 8.0.0-alpha.0, < 8.0.0-alpha.17",
                            "status": "affected"
                        }
                    ]
                }

Original source record · Cite this exact observation · Complete original publisher JSON

euvd · EUVD-2025-7806

Published

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

No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.

Original source record · Cite this exact observation · Complete original publisher JSON

nvd · CVE-2025-27789

Published

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

No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.

Original source record · Cite this exact observation · Complete original publisher JSON

osv · GHSA-968p-4wvh-cqc8

Published

@babel/helpers

npm

SEMVER · introduced 0 → fixed 7.26.10

@babel/runtime

npm

SEMVER · introduced 0 → fixed 7.26.10

@babel/runtime-corejs2

npm

SEMVER · introduced 0 → fixed 7.26.10

@babel/runtime-corejs3

npm

SEMVER · introduced 0 → fixed 7.26.10

@babel/helpers

npm

SEMVER · introduced 8.0.0-alpha.0 → fixed 8.0.0-alpha.17

@babel/runtime

npm

SEMVER · introduced 8.0.0-alpha.0 → fixed 8.0.0-alpha.17

@babel/runtime-corejs2

npm

SEMVER · introduced 8.0.0-alpha.0 → fixed 8.0.0-alpha.17

@babel/runtime-corejs3

npm

SEMVER · introduced 8.0.0-alpha.0 → fixed 8.0.0-alpha.17

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 16 Nov 12:50 UTC · 274 of 275 readable · 250 fully read · 20 waiting for GitHub's hourly limit · documentation 469/469 current