@angular/routerにSSRの処理で大量のメモリを消費させられる脆弱性
Summary
2026年10月に公表された、@angular/routerのサービス拒否(DoS)の脆弱性です。SSRを有効にしたNode.js環境で、RouterLinkのqueryParamsHandlingが'merge'または'preserve'の場合に、細工したクエリ文字列でメモリ消費を増幅させられるおそれがあります。影響するのは21.2.0以上21.2.25未満で、21.2.25に修正版が公開されています。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
2026年10月に公表された、@angular/routerのサービス拒否(DoS)の脆弱性です。SSRを有効にしたNode.js環境で、RouterLinkのqueryParamsHandlingが'merge'または'preserve'の場合に、細工したクエリ文字列でメモリ消費を増幅させられるおそれがあります。影響するのは21.2.0以上21.2.25未満で、21.2.25に修正版が公開されています。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npm@angular/router |
≥ 21.2.0, < 21.2.25→ 21.2.25 |
21.2.25 |
| angularangular | — | Not listed |
Original description The description as published by the source.
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. From 21.2.0 until 21.2.25 and 22.2.1, RouterLink directives rendered during Node.js server-side rendering retain computed UrlTree instances for the lifetime of each request. When queryParamsHandling is set to merge or preserve, either per link or through defaultQueryParamsHandling, every rendered link can retain a copy of attacker-controlled query parameters in its UrlTree. When upstream proxies or load balancers forward oversized query strings without rejecting them at the edge, multiple affected links and overlapping renders can amplify heap use until the Node.js old-space heap is exhausted and the SSR worker terminates. Numeric query-parameter names increase allocation pressure but are not required, memory is released after rendering completes, and pure client-side SPAs are not affected. This issue is fixed in versions 21.2.25 and 22.2.1.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- report github.com
- web github.com
- web github.com
- web github.com
- web github.com