Skip to content
Source
Sign inSign up
TanStack/store

chore(deps): update dependency @angular/router to v21.2.24 [security] #377

Mergedrenovate[bot](GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/377/headmerged by davidkpiano(GitHub profile, opens in a new tab)

This PR contains the following updates:

PackageChangeAgeConfidence
@angular/router (source)21.2.8 → 21.2.24ageconfidence

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.

  • 22.2.0
  • 21.2.24
  • 20.3.32
Workarounds & Mitigations

If you cannot immediately upgrade to a patched version, apply one of the following mitigations at your edge or reverse proxy:

  1. 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:
    # Nginx example: reject requests containing matrix parameters
    if ($uri ~* ";") {
        return 400;
    }
  2. Enforce Strict Path Segment Limits: Reject requests with excessive path depth (e.g., more than 20–30 segments).
  3. 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)

v21.2.24

Compare Source

router
CommitTypeDescription
03872a80bcfixavoid dense elements allocation for numeric URL keys

v21.2.23

Compare Source

platform-server
CommitTypeDescription
fc2e8fbc0bfixupdate domino to latest version

v21.2.22

Compare Source

platform-server
CommitTypeDescription
5aa6d97debfixavoid stripping unicode whitespace during url resolution
73d8bbd27cfixupdate domino to latest version

v21.2.21

Compare Source

platform-browser
CommitTypeDescription
c19a36c2fbfixdisallow event handler attributes in Meta

v21.2.20

Compare Source

core
CommitTypeDescription
6afe6fa781fixsanitize host bindings on concrete hosts
http
CommitTypeDescription
fec5977df4fixmatch header values exactly when deleting
e33d69a71cfixpreserve immutability of materialized clones
caf616670ffixrun root interceptors in the terminal request chain

v21.2.19

Compare Source

compiler
CommitTypeDescription
e2660c3deefixdisallow i18n event attributes
7b884f585afixrestrict possible event handler check to property names longer than 2 characters
http
CommitTypeDescription
948a8d6831fixdistinguish repeated transfer cache params
9949dccce1fixenable xsrf for root-provided HttpClient
platform-server
CommitTypeDescription
f34a93c946fixupdate domino to latest version

v21.2.18

Compare Source

compiler-cli
CommitTypeDescription
8d22cc953bfixupdate babel dependencies to latest v7
core
CommitTypeDescription
6bcce117fbfixavoid caching missing locale data
5a693bafcdfixreject dynamic script host elements
http
CommitTypeDescription
91df739b80fixprevent caching of responses with Set-Cookie headers
service-worker
CommitTypeDescription
1804f73becfixpreserve referrer in asset requests
e86c31bf26fixpreserve referrer policy in asset requests

v21.2.17

Compare Source

Deprecations

platform-server
  • XHR support in @angular/platform-server is deprecated. Use standard fetch APIs instead.
common
CommitTypeDescription
86a56dc279fixLimits date format string length
d846326b07fixskip transfer cache for uncacheable HTTP traffic
bc55749698fixuse cryptographically secure SHA-256 for transfer cache key generation
compiler
CommitTypeDescription
dc9c99636dfixsanitize two-way properties
core
CommitTypeDescription
1523061137fixharden TransferState restoration against DOM clobbering
88832c84f8fixvalidate lowercase SVG animation attribute names (#&#8203;69269)
http
CommitTypeDescription
bcb1b7ea25fixpreserve empty referrer option in HttpRequest
a810a319d1fixRejects non-HTTP(S) URLs in JSONP requests
e245d40c4dfixskip transfer cache for fetch credentialed requests
platform-server
CommitTypeDescription
35510746b7fixharden platform location origin validation during SSR
13fb0afe93refactordeprecate ServerXhr (#&#8203;69255)
service-worker
CommitTypeDescription
b9d29381bbfixStrips sensitive headers on cross-origin redirects

v21.2.16

Compare Source

common
CommitTypeDescription
f6d8e642b0fixonly strip a literal /index.html suffix from URLs
compiler
CommitTypeDescription
ae1c8a1f7afixmove projection attributes into constants
core
CommitTypeDescription
3fd6897a67fixharden inherit definition feature against polluted prototypes
7e38336dc7fixuse Object.create(null) for LOCALE_DATA as a hardening measure
platform-server
CommitTypeDescription
66821c4ed5fixthrow on suspicious URLs and restrict protocol-relative URLs
d3170031b6fixupdate domino to latest version

v21.2.15

Compare Source

common
CommitTypeDescription
7f4ac78994fixadd upper bounds for digitsInfo
300f61feb3fixsanitize placeholder
compiler
CommitTypeDescription
0b07f47bd6fixnormalize tag names with custom namespaces in DomElementSchemaRegistry (#&#8203;68925)
eb1cbbf2ebfixprevent namespaced SVG [removed] elements from being stripped
cc1378d54bfixsanitize dynamic href and xlink:href bindings on SVG a elements (#&#8203;68925)
782e01594efixstrip namespaced SVG script elements during template compilation (#&#8203;68925)
core
CommitTypeDescription
ff12fe55acfixnormalize tag names in runtime i18n attribute security context lookup (#&#8203;68925)
e6fe77cc97fixsanitize meta selectors
daaf32937ffixsupport prefix-insensitive DOM schema lookups and compile-time i18n attribute validation (#&#8203;68925)
dada86e43dfixsynchronize core sanitization schema with compiler (#&#8203;68925)
http
CommitTypeDescription
582a417bd2fixexclude withCredentials requests from transfer cache
5c6d6df34bfixskip TransferCache for cookie-bearing requests by default
platform-server
CommitTypeDescription
37e8aadf87fixprevent SSRF bypasses via backslash URLs in HttpClient
72696e244efixsecure location and document initialization against SSRF and path hijack
service-worker
CommitTypeDescription
b8bd49341dfixPreserves explicit 'credentials: omit' in asset requests
ca32fc1000fixPreserves HTTP cache mode in asset group requests

v21.2.14

Compare Source

compiler
CommitTypeDescription
68282dff9ffixstrip namespaced SVG script elements during template compilation
core
CommitTypeDescription
c0f52272edfixdo not insert todo when migrating void @&#8203;Output
938a7f3eddfixmakes resource URL sanitizer lookup case-insensitive
0fb2724194fixreject script element as a dynamic component host
49113ac0effixvisit ICU expressions in signal migration schematics
router
CommitTypeDescription
099bf577eefixskip scroll-to-top on initial navigation when hydrating

v21.2.13

Compare Source

core
CommitTypeDescription
1c6553e97dfixdisallow event attribute bindings in host bindings unconditionally
platform-server
CommitTypeDescription
629905d537fixadd allowedHosts option to renderModule and renderApplication
0b7192f441fixforward BEFORE_APP_SERIALIZED errors to ErrorHandler

v21.2.12

Compare Source

core
CommitTypeDescription
fe13bb669dfixallow explicit read generic with signal input transforms
3430251feffixi18n flags leaking on errors
1aeebbe304fixrespect ngSkipHydration on components with projectable nodes in LContainers
9e38ed7d57fixsanitizer typings
7a05a9a71afixvalidate security-sensitive attributes in i18n bindings
c37f6ca42ffixvisit ng-let expression value in signal migration schematics
forms
CommitTypeDescription
03ad53863bfixprohibit concurrent submits in signal forms

v21.2.11

Compare Source

common
CommitTypeDescription
10ad3c0692fixprevent focus from scrollToAnchor
compiler
CommitTypeDescription
4f5d8a2c0bfixlet declaration span not including end character
core
CommitTypeDescription
a40e2cebc8fixfix ordering of view queries metadata in JIT mode
885a1a1d97fixguard against non-object events and avoid listener wrapper identity mismatch
7a64aff9b5fixprevent event replay double-invocation when element hydrates before app stability
platform-server
CommitTypeDescription
be1f80a253fixensure origin has a trailing slash when parsing url

v21.2.10

Compare Source

docs
CommitTypeDescription
0d5ee9ae1bfixlink formatting in "Animating your Application with CSS"
migrations
CommitTypeDescription
5533ab4f56fixfix NgClass leaving trailing comma after removal
router
CommitTypeDescription
580212c995fixrestore internal URL on popstate when browserUrl is used

v21.2.9

Compare Source

core
CommitTypeDescription
f603d4714ffixescape forward slashes in transfer state to prevent crawler indexing
http
CommitTypeDescription
540536c386fixadd CSP nonce support to JsonpClientBackend
63a857b874fixDon't on Passthru outside of reactive context
platform-server
CommitTypeDescription
e0b5078cf2fixprevent SSRF bypasses via protocol-relative and backslash URLs
router
CommitTypeDescription
684e9fd53dfixnormalize 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: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

    1. renovate[bot](GitHub profile, opens in a new tab) added labelsdependencies

    2. ⚠️ Artifact update problem

      Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

      ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

      • any of the package files in this branch needs updating, or
      • the branch becomes conflicted, or
      • you click the rebase/retry checkbox if found above, or
      • you rename this PR's title to start with "rebase!" to trigger it manually

      The artifact failure details are included below:

      File name: pnpm-lock.yaml
      
      <--- Last few GCs --->
      
      [1323:0x114c0000]   114520 ms: Scavenge 1485.6 (1497.0) -> 1478.7 (1496.8) MB, pooled: 0 MB, 5.94 / 0.00 ms  (average mu = 0.293, current mu = 0.264) allocation failure; 
      [1323:0x114c0000]   116077 ms: Mark-Compact (reduce) 1484.3 (1497.3) -> 1474.5 (1479.2) MB, pooled: 0 MB, 101.61 / 0.00 ms  (+ 1378.1 ms in 82 steps since start of marking, biggest step 23.7 ms, walltime since start of marking 1556 ms) (average mu = 0.302
      FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
      ----- Native stack trace -----
      
       1: 0xf49c57 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/opt/containerbase/tools/node/24.8.0/bin/node]
       2: 0x13a6050 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/opt/containerbase/tools/node/24.8.0/bin/node]
       3: 0x13a613f v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/opt/containerbase/tools/node/24.8.0/bin/node]
       4: 0x163ec25  [/opt/containerbase/tools/node/24.8.0/bin/node]
       5: 0x163ec52  [/opt/containerbase/tools/node/24.8.0/bin/node]
       6: 0x163ef4a v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector, v8::base::TimeTicks) [/opt/containerbase/tools/node/24.8.0/bin/node]
       7: 0x164f46a  [/opt/containerbase/tools/node/24.8.0/bin/node]
       8: 0x1653810  [/opt/containerbase/tools/node/24.8.0/bin/node]
       9: 0x20e6641  [/opt/containerbase/tools/node/24.8.0/bin/node]
      /usr/local/bin/node: line 18:  1323 Aborted                 /opt/containerbase/tools/node/24.8.0/bin/node "$@"
      
    3. changeset-bot[bot](GitHub profile, opens in a new tab)commented

      ⚠️ No Changeset found

      Latest commit: bae2149553998e7706a401ae690945dde5060d79

      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

    4. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Important

      Review skipped

      Bot user detected.

      To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration
      • Configuration used: defaults
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: a517c534-b319-4638-a956-eaae9d029f51

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review
      • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    5. nx-cloud[bot](GitHub profile, opens in a new tab)commented

      View your CI Pipeline Execution ↗ for commit bae2149553998e7706a401ae690945dde5060d79

      CommandStatusDurationResult
      nx affected --targets=test:sherif,test:knip,tes...✅ Succeeded1m 30sView ↗
      nx run-many --target=build --exclude=examples/**✅ Succeeded<1sView ↗

      ☁️ Nx Cloud last updated this comment at 2026-10-04 22:03:24 UTC

    6. @tanstack/angular-store

      npm i https://pkg.pr.new/@tanstack/angular-store@377

      @tanstack/lit-store

      npm i https://pkg.pr.new/@tanstack/lit-store@377

      @tanstack/octane-store

      npm i https://pkg.pr.new/@tanstack/octane-store@377

      @tanstack/preact-store

      npm i https://pkg.pr.new/@tanstack/preact-store@377

      @tanstack/react-store

      npm i https://pkg.pr.new/@tanstack/react-store@377

      @tanstack/solid-store

      npm i https://pkg.pr.new/@tanstack/solid-store@377

      @tanstack/store

      npm i https://pkg.pr.new/@tanstack/store@377

      @tanstack/svelte-store

      npm i https://pkg.pr.new/@tanstack/svelte-store@377

      @tanstack/vue-store

      npm i https://pkg.pr.new/@tanstack/vue-store@377

      commit: bae2149

    7. Edited/Blocked Notification

      Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

      You can manually request rebase by checking the rebase/retry box above.

      ⚠️ Warning: custom changes will be lost.

Sign in to join this conversation.