This PR contains the following updates:
Angular 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/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.
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 memory fatal error and causing a Denial of Service.
- High Amplification: A single 11-byte segment (
/a;990;2522) consumes ~20 KB–25 KB of V8 heap.
- Low Concurrency Required:
- With 8 KB request paths (~740 segments, within default Nginx 8 KB buffer limits), as few as 12–22 concurrent requests crash a 256 MiB–512 MiB Node.js SSR worker.
- With smaller 1 KB–2 KB request paths (~90–180 segments), a burst of ~50–100 concurrent requests achieves the same heap exhaustion.
- Client-side SPAs Unaffected: Pure client-side Angular applications (Single Page Applications without SSR) are not vulnerable, as local browser memory consumption does not cross a security boundary.
Attack Preconditions & Vulnerable Configurations#
An application is affected only if all of the following conditions are met:
- SSR Enabled: The application runs in a Server-Side Rendering environment powered by Node.js / V8.
- Direct Router Parsing: User-controlled request URLs are parsed by
@angular/router during SSR.
- No Reverse-Proxy Semicolon/Segment Filtering: Upstream reverse proxies (Nginx, Cloudflare, ALB) forward URLs containing semicolons (
;) and multiple path segments without stripping or rejecting them.
Exploit Payload Example#
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.
Patches#
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.
Workarounds & Mitigations#
If you cannot immediately upgrade to a patched version, apply one of the following mitigations at your edge or reverse proxy:
- Block or Sanitize Matrix Parameters at the 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:
if ($uri ~* ";") {
return 400;
}
- Enforce Strict Path Segment Limits:
Reject requests with excessive path depth (e.g., more than 20–30 segments).
- Increase Node.js Old Space:
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 Score: 8.2 / 10 (High)
- Vector String:
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
References#
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes#
angular/angular (@angular/router)
Compare Source
router#
| Commit | Type | Description |
|---|
| 03872a80bc | fix | avoid dense elements allocation for numeric URL keys |
Compare Source
platform-server#
| Commit | Type | Description |
|---|
| fc2e8fbc0b | fix | update domino to latest version |
Compare Source
platform-server#
| Commit | Type | Description |
|---|
| 5aa6d97deb | fix | avoid stripping unicode whitespace during url resolution |
| 73d8bbd27c | fix | update domino to latest version |
Compare Source
platform-browser#
| Commit | Type | Description |
|---|
| c19a36c2fb | fix | disallow event handler attributes in Meta |
Compare Source
core#
| Commit | Type | Description |
|---|
| 6afe6fa781 | fix | sanitize host bindings on concrete hosts |
http#
| Commit | Type | Description |
|---|
| fec5977df4 | fix | match header values exactly when deleting |
| e33d69a71c | fix | preserve immutability of materialized clones |
| caf616670f | fix | run root interceptors in the terminal request chain |
Compare Source
compiler#
| Commit | Type | Description |
|---|
| e2660c3dee | fix | disallow i18n event attributes |
| 7b884f585a | fix | restrict possible event handler check to property names longer than 2 characters |
http#
| Commit | Type | Description |
|---|
| 948a8d6831 | fix | distinguish repeated transfer cache params |
| 9949dccce1 | fix | enable xsrf for root-provided HttpClient |
platform-server#
| Commit | Type | Description |
|---|
| f34a93c946 | fix | update domino to latest version |
Compare Source
compiler-cli#
| Commit | Type | Description |
|---|
| 8d22cc953b | fix | update babel dependencies to latest v7 |
core#
| Commit | Type | Description |
|---|
| 6bcce117fb | fix | avoid caching missing locale data |
| 5a693bafcd | fix | reject dynamic script host elements |
http#
| Commit | Type | Description |
|---|
| 91df739b80 | fix | prevent caching of responses with Set-Cookie headers |
service-worker#
| Commit | Type | Description |
|---|
| 1804f73bec | fix | preserve referrer in asset requests |
| e86c31bf26 | fix | preserve referrer policy in asset requests |
Compare Source
Deprecations#
platform-server#
- XHR support in
@angular/platform-server is deprecated. Use standard fetch APIs instead.
common#
| Commit | Type | Description |
|---|
| 86a56dc279 | fix | Limits date format string length |
| d846326b07 | fix | skip transfer cache for uncacheable HTTP traffic |
| bc55749698 | fix | use cryptographically secure SHA-256 for transfer cache key generation |
compiler#
| Commit | Type | Description |
|---|
| dc9c99636d | fix | sanitize two-way properties |
core#
| Commit | Type | Description |
|---|
| 1523061137 | fix | harden TransferState restoration against DOM clobbering |
| 88832c84f8 | fix | validate lowercase SVG animation attribute names (#​69269) |
http#
| Commit | Type | Description |
|---|
| bcb1b7ea25 | fix | preserve empty referrer option in HttpRequest |
| a810a319d1 | fix | Rejects non-HTTP(S) URLs in JSONP requests |
| e245d40c4d | fix | skip transfer cache for fetch credentialed requests |
platform-server#
service-worker#
| Commit | Type | Description |
|---|
| b9d29381bb | fix | Strips sensitive headers on cross-origin redirects |
Compare Source
common#
| Commit | Type | Description |
|---|
| f6d8e642b0 | fix | only strip a literal /index.html suffix from URLs |
compiler#
| Commit | Type | Description |
|---|
| ae1c8a1f7a | fix | move projection attributes into constants |
core#
| Commit | Type | Description |
|---|
| 3fd6897a67 | fix | harden inherit definition feature against polluted prototypes |
| 7e38336dc7 | fix | use Object.create(null) for LOCALE_DATA as a hardening measure |
platform-server#
| Commit | Type | Description |
|---|
| 66821c4ed5 | fix | throw on suspicious URLs and restrict protocol-relative URLs |
| d3170031b6 | fix | update domino to latest version |
Compare Source
common#
compiler#
core#
http#
| Commit | Type | Description |
|---|
| 582a417bd2 | fix | exclude withCredentials requests from transfer cache |
| 5c6d6df34b | fix | skip TransferCache for cookie-bearing requests by default |
platform-server#
| Commit | Type | Description |
|---|
| 37e8aadf87 | fix | prevent SSRF bypasses via backslash URLs in HttpClient |
| 72696e244e | fix | secure location and document initialization against SSRF and path hijack |
service-worker#
| Commit | Type | Description |
|---|
| b8bd49341d | fix | Preserves explicit 'credentials: omit' in asset requests |
| ca32fc1000 | fix | Preserves HTTP cache mode in asset group requests |
Compare Source
compiler#
| Commit | Type | Description |
|---|
| 68282dff9f | fix | strip namespaced SVG script elements during template compilation |
core#
| Commit | Type | Description |
|---|
| c0f52272ed | fix | do not insert todo when migrating void @​Output |
| 938a7f3edd | fix | makes resource URL sanitizer lookup case-insensitive |
| 0fb2724194 | fix | reject script element as a dynamic component host |
| 49113ac0ef | fix | visit ICU expressions in signal migration schematics |
router#
| Commit | Type | Description |
|---|
| 099bf577ee | fix | skip scroll-to-top on initial navigation when hydrating |
Compare Source
core#
| Commit | Type | Description |
|---|
| 1c6553e97d | fix | disallow event attribute bindings in host bindings unconditionally |
platform-server#
| Commit | Type | Description |
|---|
| 629905d537 | fix | add allowedHosts option to renderModule and renderApplication |
| 0b7192f441 | fix | forward BEFORE_APP_SERIALIZED errors to ErrorHandler |
Compare Source
core#
| Commit | Type | Description |
|---|
| fe13bb669d | fix | allow explicit read generic with signal input transforms |
| 3430251fef | fix | i18n flags leaking on errors |
| 1aeebbe304 | fix | respect ngSkipHydration on components with projectable nodes in LContainers |
| 9e38ed7d57 | fix | sanitizer typings |
| 7a05a9a71a | fix | validate security-sensitive attributes in i18n bindings |
| c37f6ca42f | fix | visit ng-let expression value in signal migration schematics |
forms#
| Commit | Type | Description |
|---|
| 03ad53863b | fix | prohibit concurrent submits in signal forms |
Compare Source
common#
| Commit | Type | Description |
|---|
| 10ad3c0692 | fix | prevent focus from scrollToAnchor |
compiler#
| Commit | Type | Description |
|---|
| 4f5d8a2c0b | fix | let declaration span not including end character |
core#
| Commit | Type | Description |
|---|
| a40e2cebc8 | fix | fix ordering of view queries metadata in JIT mode |
| 885a1a1d97 | fix | guard against non-object events and avoid listener wrapper identity mismatch |
| 7a64aff9b5 | fix | prevent event replay double-invocation when element hydrates before app stability |
platform-server#
| Commit | Type | Description |
|---|
| be1f80a253 | fix | ensure origin has a trailing slash when parsing url |
Compare Source
docs#
| Commit | Type | Description |
|---|
| 0d5ee9ae1b | fix | link formatting in "Animating your Application with CSS" |
migrations#
| Commit | Type | Description |
|---|
| 5533ab4f56 | fix | fix NgClass leaving trailing comma after removal |
router#
| Commit | Type | Description |
|---|
| 580212c995 | fix | restore internal URL on popstate when browserUrl is used |
Compare Source
core#
| Commit | Type | Description |
|---|
| f603d4714f | fix | escape forward slashes in transfer state to prevent crawler indexing |
http#
| Commit | Type | Description |
|---|
| 540536c386 | fix | add CSP nonce support to JsonpClientBackend |
| 63a857b874 | fix | Don't on Passthru outside of reactive context |
platform-server#
| Commit | Type | Description |
|---|
| e0b5078cf2 | fix | prevent SSRF bypasses via protocol-relative and backslash URLs |
router#
| Commit | Type | Description |
|---|
| 684e9fd53d | fix | normalize multiple leading slashes in URL parser |
Configuration#
📅 Schedule: (UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 Automerge: Disabled because a matching PR was automerged previously.
♻ 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.
⚠️ No Changeset found#
Latest commit: daee51da0c442a7280e4bf38cd786c94146e286a
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR