@ANGULAR/ROUTER · CVE-2026-101896 · Package
FIX → 22.2.0 · 21.2.24 · 20.3.32 · End of Support / LTS expired; will not be patched
When Angular SSR runs on Node.js, numeric matrix parameters in request URLs make @angular/router allocate large V8 array backing stores, so a modest number of requests can exhaust the heap. An unauthenticated attacker can crash the server-side rendering worker with an out-of-memory error, causing denial of service.
first public Sep 23, 2026 · 3 sources
Could this affect your app?
Free first check from your website. Connect your repo for the full answer.
Only Angular applications that use server-side rendering on Node.js, where user-supplied request URLs are parsed by @angular/router during SSR. Client-side single page apps are not affected, and deployments behind a proxy that rejects semicolons or limits path depth reduce exposure. Versions 19.2.25 and older will not receive a fix.
Not affected if client-side-only, proxy-strips-semicolons, static-export
Who cares angular, node.js, npm, ssr, web-frontend
@angular/router version in package-lock.json or yarn.lock, or run .A denial of service (DoS) vulnerability was identified in @angular/router when Server-Side Rendering (SSR) is enabled on Node.js (V8).
When @angular/router parses incoming request URLs, it extracts path segments, matrix parameters, and child outlets into plain JavaScript objects (Record<string, string>). When matrix parameter names or outlet names are numeric strings (such as /a;990;2522), the V8 JavaScript engine interprets them as array-indexed properties rather than named properties.
Under V8's internal property-storage heuristics, setting numeric keys on an initially empty object causes V8 to allocate a dense array backing store (HOLEY_ELEMENTS) sized to the maximum index rather than falling back to sparse dictionary storage. Specifically, assigning sequential or moderately large numeric keys (like 990 followed by 2522) causes V8 to allocate a contiguous backing store of ~2,522 pointers (~20 KB to 25 KB of heap) for a single 11-byte segment.
Because each segment in a URL path allocates its own independent parameters object, an attacker can craft URLs with repeated numeric matrix parameters to achieve an asymmetric memory amplification factor of approximately ~350x.
Check it with your coding agent
It reads this page and tells you if your code is affected.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
npm ls @angular/router; and deep path segments to the SSR service.Upgrade to 22.2.0 · 21.2.24 · 20.3.32 · End of Support / LTS expired; will not be patched
@angular/router 22.x: upgrade to 22.2.0@angular/router 21.x: upgrade to 21.2.24@angular/router 20.x: upgrade to 20.3.32@angular/router 19.2.25 and older: no fix; the line is out of support and will not be patchedSuccessful exploitation allows an unauthenticated remote attacker to exhaust the Node.js old-space heap with modest request volume, terminating the SSR worker with an unrecoverable JavaScript heap out of memory fatal error and causing a Denial of Service.
/a;990;2522) consumes ~20 KB–25 KB of V8 heap.An application is affected only if all of the following conditions are met:
@angular/router during SSR.;) and multiple path segments without stripping or rejecting them.An attacker sends concurrent HTTP requests with repeated numeric matrix parameters:
GET /a;990;2522/a;990;2522/a;990;2522/... HTTP/1.1
Host: example.com
Even with paths under 2 KB, overlapping requests during SSR will rapidly consume the V8 heap until the process crashes.
The issue is resolved by updating @angular/router to enforce V8 dictionary elements storage (setUrlDerivedKey) for numeric URL-derived keys (index >= 32). This prevents V8 from allocating oversized contiguous array backing stores while preserving route matching, parameter values, and component input bindings.
22.2.021.2.2420.3.32If you cannot immediately upgrade to a patched version, apply one of the following mitigations at your edge or reverse proxy:
;) in request paths before forwarding requests to the Angular SSR service:
# Nginx example: reject requests containing matrix parameters
if ($uri ~* ";") {
return 400;
}
--max-old-space-size (e.g., to 2048 or 4096 MB) to increase the concurrency threshold required to exhaust memory, though this does not fully eliminate the vulnerability under sustained traffic.This page as .md · .json · CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
GitHub Advisory Database, CC-BY 4.0 · NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.