Vulnerability
CVE-2025-27789
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.
269 advisories report this vulnerability, across 4 ecosystems.
Advisories in Wolfi
- CGA-2qj9-3j4v-4jmg
- CGA-3726-6g3g-hmjm
- CGA-3g5x-9633-9wgf
- CGA-3g87-fw76-mxj3
- CGA-3gv3-f2rg-3mr4
- CGA-3x9g-xjjg-hrr3
- CGA-42xm-49fj-4mxr
- CGA-4978-jhx8-2rx8
- CGA-4wf2-85gp-5x99
- CGA-4x6j-m5jj-r483
- CGA-5hvc-v8mp-j82g
- CGA-6p79-75qv-pfpj
- CGA-6xg4-pc8w-gcp9
- CGA-84jp-h9r5-5h82
- CGA-8f9f-33wp-m3gx
- CGA-8j83-ghrw-wx6h
- CGA-8qwv-3vj3-hf68
- CGA-8wj4-pqw8-phrx
- CGA-97rc-4vpp-pxx3
- CGA-c6gg-68w6-m34j
- CGA-c843-6whh-m897
- CGA-c886-3xww-j453
- CGA-f4f4-x357-9vrv
- CGA-f9p4-gpmx-369w
- CGA-fxfj-prxh-jqwc
- CGA-g98x-jqx2-xgvw
- CGA-gxr6-xcm6-3p8c
- CGA-hj8w-4r29-j8gx
- CGA-hrpq-rp2f-fq45
- CGA-j3fc-68cg-2fg6
- CGA-j7f9-6xp2-9m5w
- CGA-mv2f-xrmh-jcm6
- CGA-pmxp-3rgv-wr92
- CGA-qp3m-x93p-pc42
- CGA-qx9r-5q6m-2pwp
- CGA-r9cq-mmv6-hv3p
- CGA-w6hw-6mg2-8242
- CGA-w9q3-3cg2-9rfr
- CGA-wv7c-c7f5-w854
- CGA-xh47-qjrj-p4rp
- CGA-xhrw-p88x-vw6h