Repository navigation
Update dependency @angular/router to v21.2.25 [SECURITY] - #94
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
21.1.4→21.2.25@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).
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
v21.2.13Compare Source
core
platform-server
allowedHostsoption torenderModuleandrenderApplicationv21.2.12Compare Source
core
forms
v21.2.11Compare Source
common
compiler
core
platform-server
v21.2.10Compare Source
docs
migrations
router
browserUrlis usedv21.2.9Compare Source
core
http
platform-server
router
v21.2.8Compare Source
compiler
compiler-cli
core
language-service
v21.2.7Compare Source
compiler
compiler-cli
core
object[data]as resource URL context (#67797)localize
router
v21.2.6Compare Source
common
compiler
core
migrations
v21.2.5Compare Source
compiler
compiler-cli
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.