@angular/router is vulnerable to Denial of Service (DoS)
82
CVE Score
High
Denial of Service (DoS)
During server side rendering, the _urlTree computed signal on a RouterLink with queryParamsHandling set to merge or preserve caches the resolved UrlTree and its query parameter object for the whole request. Each link with a large query string duplicates and retains that parameter object in the signal cache, so heap use scales with the number of affected links and the size of the parsed query. A modest number of concurrent requests with oversized query strings can exhaust the Node.js old space heap and crash the SSR worker. The fix removes the cached signal and builds the UrlTree again on each access instead of keeping it in memory.
Upgrade the @angular/router library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you render RouterLink directives with queryParamsHandling set to merge or preserve during server side rendering (SSR).
21.2.0 - 21.2.24
Fixed in 21.2.2522.0.0 - 22.2.0
Fixed in 22.2.1@angular/router is vulnerable to Denial of Service (DoS) in versions 21.2.0 - 21.2.24 and 22.0.0 - 22.2.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.