{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2025-27789","published":"2025-03-11T20:15:18.330000Z","last_modified":"2026-06-17T09:04:13.763000Z","status":"Deferred","cvss":{"version":"3.1","score":6.2,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"security-advisories@github.com","primary":false},"auth":true,"cwes":["CWE-1333"],"cpes":[],"cpes_truncated":false,"vendors":["babel"],"products":["babel/babel"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-968p-4wvh-cqc8","ecosystem":"npm","name":"@babel/helpers","purl":"pkg:npm/%40babel/helpers","ranges":[{"introduced":"0","fixed":"7.26.10"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-968p-4wvh-cqc8","ecosystem":"npm","name":"@babel/helpers","purl":"pkg:npm/%40babel/helpers","ranges":[{"introduced":"8.0.0-alpha.0","fixed":"8.0.0-alpha.17"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-968p-4wvh-cqc8","ecosystem":"npm","name":"@babel/runtime","purl":"pkg:npm/%40babel/runtime","ranges":[{"introduced":"0","fixed":"7.26.10"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-968p-4wvh-cqc8","ecosystem":"npm","name":"@babel/runtime","purl":"pkg:npm/%40babel/runtime","ranges":[{"introduced":"8.0.0-alpha.0","fixed":"8.0.0-alpha.17"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-968p-4wvh-cqc8","ecosystem":"npm","name":"@babel/runtime-corejs2","purl":"pkg:npm/%40babel/runtime-corejs2","ranges":[{"introduced":"0","fixed":"7.26.10"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-968p-4wvh-cqc8","ecosystem":"npm","name":"@babel/runtime-corejs2","purl":"pkg:npm/%40babel/runtime-corejs2","ranges":[{"introduced":"8.0.0-alpha.0","fixed":"8.0.0-alpha.17"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-968p-4wvh-cqc8","ecosystem":"npm","name":"@babel/runtime-corejs3","purl":"pkg:npm/%40babel/runtime-corejs3","ranges":[{"introduced":"0","fixed":"7.26.10"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-968p-4wvh-cqc8","ecosystem":"npm","name":"@babel/runtime-corejs3","purl":"pkg:npm/%40babel/runtime-corejs3","ranges":[{"introduced":"8.0.0-alpha.0","fixed":"8.0.0-alpha.17"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":37,"links":{"html_es":"/es/cve/CVE-2025-27789/","html_en":"/en/cve/CVE-2025-27789/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-27789","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-27789"},"untrusted":{"vendor_name":"babel","product_name":"babel","desc_en":"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":[{"untrusted_vendor":"babel","untrusted_product":"babel","versions":[]}],"references":[{"url":"https://github.com/babel/babel/pull/17173","tags":[]},{"url":"https://github.com/babel/babel/security/advisories/GHSA-968p-4wvh-cqc8","tags":[]}]}}