Descrizione
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 20.3.33, 21.2.25, and 22.2.1, @angular/router in Node.js server-side rendering fails to require auxiliary outlet URL segments to match routes configured for their outlet names. Crafted requests containing multiple unconfigured empty-path outlet groups can repeatedly evaluate the route configuration, construct duplicate ActivatedRouteSnapshot trees, execute canMatch guards and resolvers, and copy route parameters and queryParams for each outlet. An unauthenticated remote attacker can exhaust the Node.js heap or CPU and terminate an SSR worker when SSR is enabled, a route level contains an empty-path route or named outlet, upstream infrastructure forwards the request target, and the worker has a constrained heap. The allocation is transient rather than a persistent leak, and client-side SPAs and build-time prerendering are not affected. This issue is fixed in versions 20.3.33, 21.2.25, and 22.2.1.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.2, EPSS 1.0% (percentile 63).
Versioni da aggiornare
- angular angular: vulnerabile la versione
<= 19.2.25→ installare l'ultima release supportata dal vendor. - angular angular: vulnerabile la versione
>= 20.0.0, < 20.3.33→ installare l'ultima release supportata dal vendor. - angular angular: vulnerabile la versione
>= 21.0.0, < 21.2.25→ installare l'ultima release supportata dal vendor. - angular angular: vulnerabile la versione
>= 22.0.0, < 22.2.1→ installare l'ultima release supportata dal vendor.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Applicare rate limiting e limiti sulle risorse a monte del servizio e monitorarne la disponibilità.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| angular | angular | <= 19.2.25 | — |
| angular | angular | >= 20.0.0, < 20.3.33 | — |
| angular | angular | >= 21.0.0, < 21.2.25 | — |
| angular | angular | >= 22.0.0, < 22.2.1 | — |
Riferimenti
- Riferimentohttps://github.com/angular/angular/commit/a83f8119acd466b524ae0113096ed188358d6d6c
- Riferimentohttps://github.com/angular/angular/commit/b0d2ba0f54e21cb57ea5a0ca0d8e6065f28e23a0
- Riferimentohttps://github.com/angular/angular/commit/e9bf52aa03a3b9b302c33ffbc967ef0e1de5fb79
- Riferimentohttps://github.com/angular/angular/issues/70932
- Riferimentohttps://github.com/angular/angular/issues/70997
- Riferimentohttps://github.com/angular/angular/pull/71055
- Riferimentohttps://github.com/angular/angular/releases/tag/v20.3.33
- Riferimentohttps://github.com/angular/angular/releases/tag/v21.2.25
- Riferimentohttps://github.com/angular/angular/releases/tag/v22.2.1
- Riferimentohttps://github.com/angular/angular/security/advisories/GHSA-62vg-58rm-qff7
- Riferimentohttps://github.com/angular/angular/security/advisories/GHSA-62vg-58rm-qff7