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
- CGA-22m7-f66g-m83p
- CGA-26j6-rccp-67cp
- CGA-2cgq-6484-xjch
- CGA-2gjc-3mcm-cw9r
- CGA-2gwx-xqf9-hj2f
- CGA-2jg6-hx73-7xm5
- CGA-2m2r-9p96-6gcp
- CGA-2p5j-8rmm-22mq
- CGA-2ppf-763m-7cxf
- CGA-2qj9-3j4v-4jmg
- CGA-2wfp-99fc-mrfm
- CGA-3726-6g3g-hmjm
- CGA-384p-v5vh-r9pr
- CGA-3868-2xxg-49vq
- CGA-392w-558r-px3p
- CGA-39gp-3rg5-267g
- CGA-3g5x-9633-9wgf
- CGA-3g6f-3p43-w45w
- CGA-3g86-8mcf-mmrr
- CGA-3g87-fw76-mxj3
- CGA-3gv3-f2rg-3mr4
- CGA-3h2p-mm94-x8w4
- CGA-3p3h-537c-p8c7
- CGA-3wx9-vfw8-pfg8
- CGA-3x9g-xjjg-hrr3
- CGA-42w4-5746-7gxq
- CGA-42xm-49fj-4mxr
- CGA-4698-jjgv-3c5g
- CGA-46qc-x47q-998x
- CGA-47vr-g5p3-mxvh
- CGA-4978-jhx8-2rx8
- CGA-4g68-6pxf-7p2m
- CGA-4ghm-v9mw-xfh6
- CGA-4j32-286x-r8cj
- CGA-4jww-8jhx-9847
- CGA-4p6r-r233-92hf
- CGA-4qj2-684c-49vv
- CGA-4w3m-j543-w52f
- CGA-4wf2-85gp-5x99
- CGA-4wmq-9hg7-frxr
- CGA-4x6j-m5jj-r483
- CGA-55cq-x3fh-v9g5
- CGA-567r-3vhq-vqjc
- CGA-56jx-xq28-h6xg
- CGA-59fp-f5wq-867h
- CGA-5c4v-vqvx-626f
- CGA-5cfq-pm82-7c8h
- CGA-5hm3-qvw3-xg82
- CGA-5hvc-v8mp-j82g
- CGA-5rvm-7346-wp8x
- CGA-5rwf-qcjw-5c8j
- CGA-5vv8-qx48-xxr7
- CGA-5wjf-5pc5-h6f2
- CGA-5xf4-525j-cffx
- CGA-62mw-4cg6-64xp
- CGA-65gm-g9c2-rxf8
- CGA-6672-84qh-qh97
- CGA-6742-4cr4-7crv
- CGA-67vx-fp8x-7v4x
- CGA-6gf6-fcqw-73w9
- CGA-6h5p-pvvx-xr4q
- CGA-6m8q-wfcq-m59c
- CGA-6p79-75qv-pfpj
- CGA-6qh6-6pmf-qg99
- CGA-6qvh-hfc6-r7xh
- CGA-6xg4-pc8w-gcp9
- CGA-73m2-59pc-5x9f
- CGA-754j-r2pv-rm2c
- CGA-79fg-rg63-7r7v
- CGA-79j7-vwg8-7g5j
- CGA-79r8-g2r6-9rqx
- CGA-7cgx-8rxq-fpmq
- CGA-7h8f-985r-x34q
- CGA-7hvv-gmrw-9v22
- CGA-7m57-7p5m-vpqx
- CGA-7mfh-qh2r-626j
- CGA-7q69-jcgm-627g
- CGA-7v93-6j5x-63mq
- CGA-7w2f-2p3c-fqgp
- CGA-824c-3fhf-cj83
- CGA-83h5-49vc-c6xv
- CGA-846v-4j64-hr94
- CGA-84jp-h9r5-5h82
- CGA-84wm-8m8v-rf3v
- CGA-86xh-3j5f-5x5j
- CGA-87jg-8ccp-xf7r
- CGA-892h-3g27-3f85
- CGA-8cqg-5q7g-7hpp
- CGA-8f9f-33wp-m3gx
- CGA-8gq5-568q-r9vw
- CGA-8j3w-q56g-743g
- CGA-8j83-ghrw-wx6h
- CGA-8prc-jw6x-fphq
- CGA-8q4p-f98c-jgx5
- CGA-8qwv-3vj3-hf68
- CGA-8rw7-cmwq-fx2q
- CGA-8w6w-9w9c-8f29
- CGA-8wj4-pqw8-phrx
- CGA-8xcr-ccfh-xq2f
- CGA-9783-jhcj-45j2
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2025-27789.