Repository navigation
chore(deps): update dependency @angular/router to v21.2.25 [security] - #570
renovate[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
View your CI Pipeline Execution ↗ for commit 6199c70
💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗ ☁️ Nx Cloud last updated this comment at |
More templates
@tanstack/angular-devtools
@tanstack/devtools
@tanstack/devtools-a11y
@tanstack/devtools-bundler-core
@tanstack/devtools-client
@tanstack/devtools-rspack
@tanstack/devtools-ui
@tanstack/devtools-utils
@tanstack/devtools-vite
@tanstack/devtools-webmcp
@tanstack/devtools-event-bus
@tanstack/devtools-event-client
@tanstack/preact-devtools
@tanstack/react-devtools
@tanstack/solid-devtools
@tanstack/svelte-devtools
@tanstack/vue-devtools
commit: |
cd5d8ac to
6199c70
Compare
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
21.2.12→21.2.25Angular Server-Side Rendering (SSR): Denial of Service via Numeric URL Matrix Parameters
CVE-2026-101896 / GHSA-ff3f-86qr-9cv3
More information
Details
A denial of service (DoS) vulnerability was identified in
@angular/routerwhen Server-Side Rendering (SSR) is enabled on Node.js (V8).When
@angular/routerparses 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 (like990followed by2522) 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
parametersobject, an attacker can craft URLs with repeated numeric matrix parameters to achieve an asymmetric memory amplification factor of approximately ~350x.Impact
Successful 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 memoryfatal error and causing a Denial of Service./a;990;2522) consumes ~20 KB–25 KB of V8 heap.Attack Preconditions & Vulnerable Configurations
An application is affected only if all of the following conditions are met:
@angular/routerduring SSR.;) and multiple path segments without stripping or rejecting them.Exploit Payload Example
An attacker sends concurrent HTTP requests with repeated numeric matrix parameters:
Even with paths under 2 KB, overlapping requests during SSR will rapidly consume the V8 heap until the process crashes.
Patches
The issue is resolved by updating
@angular/routerto 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.32Workarounds & Mitigations
If you cannot immediately upgrade to a patched version, apply one of the following mitigations at your edge or reverse proxy:
Configure your reverse proxy (e.g., Nginx, Cloudflare, or AWS WAF) to reject or strip semicolons (
;) in request paths before forwarding requests to the Angular SSR service:Reject requests with excessive path depth (e.g., more than 20–30 segments).
Increase
--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.Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
@angular/router: Denial of Service via Unmatched Empty-Path Outlet Route Matching in Server-Side Rendering (SSR)
CVE-2026-111752 / GHSA-62vg-58rm-qff7
More information
Details
A denial of service (DoS) vulnerability was identified in
@angular/routerwhen Server-Side Rendering (SSR) is enabled on Node.js (V8).During route recognition,
@angular/routerfails to validate whether an auxiliary outlet segment in the URL matches a route configured for that specific outlet name. Because unconfigured empty-path outlet groups (such asa:/(),x:/(...), or///(...)) are not rejected during matching, the router repeatedly re-evaluates the route configuration against each arbitrary outlet segment provided in the URL.When a request URL contains multiple arbitrary empty-path outlet segments, this improper matching forces the router to instantiate duplicate
ActivatedRouteSnapshottrees, repeatedly executecanMatchguards and route resolvers, and allocate separate copies of route parameters andqueryParamsfor each unconfigured outlet.An unauthenticated remote attacker can exploit this behavior by sending requests with crafted outlet segments to exhaust the Node.js memory heap or overwhelm CPU resources, leading to SSR worker termination and service disruption.
Impact
Successful exploitation allows an unauthenticated remote attacker to exhaust the Node.js heap with a single crafted request or a small number of concurrent requests, terminating the SSR worker process with a fatal JavaScript heap out-of-memory crash. When the matched routes declare
canMatchguards or resolvers, a single short request can also trigger repeated guard or resolver executions, increasing load on backend services and holding worker connections open.Attack Preconditions & Vulnerable Configurations
An application is affected only if all of the following conditions are met:
path: "") route (e.g.,{path: "", component: ShopPage}), or{path: "dashboard", children: [{path: ":id", outlet: "detail", component: DetailPanel}]}).Exploit Payload Examples
Against a configuration with empty-path (
path: "") routes and query parameters:Against a configuration with named-outlet or sibling routes:
Patches
The issue is resolved in angular/angular#71055. The router now requires every child outlet segment group to match a route configured for its target outlet before unwrapping child segments or completing a match, and prevents unconfigured empty-path outlet groups from matching routes declared for other outlets.
Patched versions:
22.2.121.2.2520.3.33Versions prior to v20 are also affected but are no longer supported and will not receive a patch.
Workarounds & Mitigations
If you cannot immediately upgrade to a patched version, apply one or more of the following mitigations:
Reject Parenthesized or Empty-Path Outlet URLs in Middleware or WAF (Recommended):
In
@angular/router, auxiliary outlet groups in a URL always use parentheses(...), and empty-path outlet groups in a URL always take the form:/(,(/, or///(.(or)before Angular SSR handles the request.:/(,(/, or///().Unlike URL length limits, this completely blocks both heap exhaustion and short-URL guard/resolver amplification:
Limit URL Length at Reverse Proxy or Middleware:
Configure your edge proxy, web application firewall (WAF), or reverse proxy to reject requests with excessively long URLs (e.g., exceeding 2,048 bytes). The outlet portion of the payload is in the path, so limit the full request target, not only the query string. This reduces, but does not eliminate, guard/resolver amplification, which requires only a short URL.
Increase Node.js Old Space:
Increasing
--max-old-space-sizeraises the request size and concurrency required to exhaust memory, though it does not eliminate the issue.Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
@angular/router: Denial of Service via RouterLink Query Parameter Retention in Server-Side Rendering (SSR)
CVE-2026-111751 / GHSA-57xq-rjx2-v5xh
More information
Details
A denial of service (DoS) vulnerability was identified in
@angular/routerwhen Server-Side Rendering (SSR) is enabled on Node.js (V8) andRouterLinkdirectives are rendered withqueryParamsHandling: 'merge'or'preserve', configured either per link or globally viadefaultQueryParamsHandling.Starting in v21.2.0 (angular/angular#66181),
RouterLinkinternals were refactored to use signals, introducing a computed signal (_urlTree) that cached the returnedUrlTreeinstance on the directive. Because each rendered link maintains an activeRouterLinkinstance for the entire duration of the request lifecycle, the computed signal permanently pinned theUrlTreeand its associated query parameter dictionary in the heap until the SSR response completed.When query parameter handling is set to
'merge'or'preserve', each link copies the incoming request's query parameters into its ownUrlTree. During SSR, memory consumption scales multiplicatively:Because parsed JavaScript objects and property dictionaries require substantially more heap space than the raw query string—particularly when property names trigger dense array allocations under V8 property-storage heuristics—an attacker can supply oversized query strings to amplify heap consumption by orders of magnitude per in-flight request.
Impact
Successful exploitation allows an unauthenticated remote attacker to exhaust the Node.js old-space heap with modest concurrent request volume, terminating the SSR worker with an unrecoverable JavaScript heap out of memory fatal crash.
Attack Preconditions & Vulnerable Configurations
An application is affected only if all of the following conditions are met:
RouterLinkelements rendered during SSR usequeryParamsHandling: 'merge'or'preserve', either bound explicitly on links or configured application-wide viawithRouterConfig({ defaultQueryParamsHandling: 'merge' }).large_client_header_bufferslimit rejects 16 KB request lines unless explicitly increased).Exploit Payload Example
An attacker issues concurrent HTTP requests containing dense query parameters to an SSR page that renders multiple merged links:
Patches
The issue is resolved by removing persistent
UrlTreeretention fromRouterLink(angular/angular#70953).RouterLinknow tracks route dependencies directly inreactiveHrefand discards intermediateUrlTreeinstances immediately after computing the serialized href string. TheurlTreegetter and click handlers computeUrlTreeinstances on demand.As a result, intermediate query parameter maps are short-lived allocations collected during young-generation GC scavenges rather than remaining pinned in the heap for the lifetime of the request, restoring the memory profile of Angular 21.1 and earlier.
Patched versions:
22.2.121.2.25Versions prior to 21.2.0 (including Angular 20.x LTS and 21.1.x) do not retain
UrlTreeinstances inRouterLinkand are not vulnerable to this issue.Workarounds & Mitigations
If you cannot immediately upgrade to a patched version, apply one or more of the following mitigations:
Avoid 'merge' and 'preserve' on Server-Rendered Links:
Remove
defaultQueryParamsHandling: 'merge'(or'preserve') from global configuration. Explicitly bind only the specific query parameters each link requires (e.g.,[queryParams]="{ filter: filter() }"). Even on patched versions, this practice prevents unnecessary request-derived parameter propagation into generated DOM markup.Limit Query String Length at Reverse Proxy or Middleware:
Configure your edge proxy, web application firewall (WAF), or reverse proxy to reject requests with excessively long query strings (e.g., exceeding 2,048 bytes).
Alternatively, reject oversized query strings in Node.js before Angular SSR handles the request:
Increase Node.js Old Space:
Increasing
--max-old-space-size(e.g., to 2048 MB or 4096 MB) increases the memory headroom and the concurrency threshold required to exhaust memory, though it does not fully eliminate vulnerability under sustained traffic.Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
angular/angular (@angular/router)
v21.2.25Compare Source
platform-server
router
v21.2.24Compare Source
router
v21.2.23Compare Source
platform-server
v21.2.22Compare Source
platform-server
v21.2.21Compare Source
platform-browser
v21.2.20Compare Source
core
http
v21.2.19Compare Source
compiler
http
platform-server
v21.2.18Compare Source
compiler-cli
core
http
service-worker
v21.2.17Compare Source
Deprecations
platform-server
@angular/platform-serveris deprecated. Use standardfetchAPIs instead.common
compiler
core
http
platform-server
service-worker
v21.2.16Compare Source
common
compiler
core
platform-server
v21.2.15Compare Source
common
compiler
core
http
platform-server
service-worker
v21.2.14Compare Source
compiler
core
router
| Commit | Type | Description
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.