chore(deps): update dependency @angular/common to v21.2.17 [security] - abandoned #353
main fromrenovate/npm-angular-common-vulnerability·opened This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| @angular/common (source) | 21.2.8 → 21.2.17 |
@​angular/common: Information Leak via Default Caching of Credentialed Requests in HttpTransferCache#
CVE-2026-50170 / GHSA-q6f4-qqrg-jv6x
More information
Details#
A vulnerability was discovered in @angular/common when Server-Side Rendering (SSR) and hydration are enabled. The HttpTransferCache utility optimizes hydration by caching outgoing HTTP requests performed during SSR and transferring the cached state to the client-side application via TransferState.
However, the caching mechanism fails to inspect the withCredentials flag or the Cookie header of outgoing requests. As a result, credentialed, user-specific responses may be cached by default in the shared TransferState payload. When these responses are serialized into the HTML, any caching layer (such as a CDN, reverse proxy, or shared server cache) that caches the SSR-rendered HTML page could inadvertently cache and leak one user's private data to other users, leading to a high-severity information disclosure vulnerability.
Impact#
Successful exploitation allows an unauthenticated attacker to obtain sensitive, user-specific information of other authenticated users. This occurs when:
- The SSR-rendered HTML containing the cached private data is stored in a shared cache (e.g., CDN, reverse proxy).
- Subsequent requests for the same page receive the cached HTML containing the first user's private data.
Attack Preconditions#
- SSR and Hydration Enabled: The Angular application must be configured to use Server-Side Rendering and hydration (e.g., using
provideClientHydration()). - Credentialed Requests during SSR: The application must perform HTTP requests that require user-specific authentication (using cookies or
withCredentials: true) during the initial server-side render. - Shared Caching: The application's HTML responses must be cached by a shared caching layer (CDN, reverse proxy, or server-side cache) without proper cache-control headers to distinguish authenticated users.
Patches#
- 22.0.0-rc.2
- 21.2.15
- 20.3.22
- 19.2.23
Severity#
- CVSS Score: 8.2 / 10 (High)
- Vector String:
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
References#
- https://github.com/angular/angular/security/advisories/GHSA-q6f4-qqrg-jv6x
- https://github.com/angular/angular/pull/67964
- https://nvd.nist.gov/vuln/detail/CVE-2026-50170
- https://github.com/advisories/GHSA-q6f4-qqrg-jv6x
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
@​angular/common: Denial of Service (DoS) via OOM in Number Formatting (digitsInfo)#
CVE-2026-50171 / GHSA-p3vc-36g9-x9gr
More information
Details#
A Denial of Service (DoS) vulnerability exists in the @angular/common package of Angular. The formatNumber function, which is also utilized by DecimalPipe, PercentPipe, and CurrencyPipe, does not properly validate the upper bounds of the digitsInfo parameter. Specifically, the minimum and maximum fraction digits parsed from the digitsInfo string (e.g., 1.2-4) are converted to integers and used without limits.
When parsing a maliciously crafted digitsInfo string with excessively large fraction digit values (e.g., 1.200000000-200000000), the internal roundNumber function attempts to pad the digits array to match the requested fraction size. This results in an unbounded loop that repeatedly pushes elements into an array.
Impact#
Successful exploitation of this vulnerability allows an attacker to trigger resource exhaustion, leading to a Denial of Service (DoS):
- Server-Side Rendering (SSR): In applications using SSR (e.g.,
@angular/ssr), an attacker can crash the Node.js server process due to aJavaScript heap out of memoryerror. This affects the availability of the application for all users. - Client-Side Rendering (CSR): In standard client-side applications, the unbounded loop will block the main thread, freezing the user's browser tab and making it unresponsive.
Attack Preconditions#
For this vulnerability to be exploitable, the following conditions must be met:
- Vulnerable Component Usage: The application must use Angular's number formatting utilities, such as the
formatNumberfunction directly, or via template pipes (DecimalPipe,PercentPipe,CurrencyPipe). - Attacker-Controlled Parameter: The
digitsInfoparameter passed to these utilities must be customizable or directly controlled by untrusted user input (e.g., parsed from query parameters, user preference settings, or API responses that accept user-defined formatting options). IfdigitsInfois trusted or limited to a known, defined range for its value, the vulnerability is not exploitable by external attackers.
Patches#
- 22.0.0-rc.2
- 21.2.15
- 20.3.22
- 19.2.23
Credits#
This vulnerability was discovered and reported by CodeMender from Google DeepMind.
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#
- https://github.com/angular/angular/security/advisories/GHSA-p3vc-36g9-x9gr
- https://github.com/angular/angular/pull/68840
- https://nvd.nist.gov/vuln/detail/CVE-2026-50171
- https://github.com/advisories/GHSA-p3vc-36g9-x9gr
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
@​angular/common: Denial of Service (DoS) via OOM in Date Formatting (formatDate)#
CVE-2026-54268 / GHSA-48r7-hpm6-gfxm
More information
Details#
A Denial of Service (DoS) vulnerability exists in the @angular/common package of the Angular framework. The formatDate function, which is also utilized by the standard Angular DatePipe, does not properly limit or validate the length of the format parameter.
When parsing a maliciously crafted, excessively long date format string (e.g., a repeating pattern or very large string), the internal parser splits the string iteratively using a regular expression loop. This results in uncontrolled resource consumption (high CPU utilization and excessive memory allocations), leading to a Denial of Service (DoS).
Impact#
1. Server-Side Rendering (SSR)#
In Angular applications that leverage Server-Side Rendering, an attacker can supply a malicious payload with an excessively long date format string. Processing this on the server causes high CPU usage and triggers a JavaScript heap out of memory crash, rendering the application unavailable to all users.
2. Client-Side Rendering (CSR)#
In standard client-side applications, executing the vulnerable function with an excessively long format string blocks the browser's main thread, causing the browser tab to freeze and become completely unresponsive.
Patched Versions#
- 22.0.1
- 21.2.17
- 20.3.25
Attack Preconditions#
For this vulnerability to be exploitable, both of the following conditions must be met:
- Vulnerable Component Usage: The application must format dates using the
formatDateutility or theDatePipe. - Attacker-Controlled Parameter: The date format string passed to these utilities must be customizable or directly controlled by untrusted user input (e.g., parsed from query parameters, user preferences, or API responses).
If the date format is hardcoded (e.g., 'mediumDate', 'shortTime', or static strings) or properly validated to be within a reasonable length limit, the application is not vulnerable.
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#
- https://github.com/angular/angular/security/advisories/GHSA-48r7-hpm6-gfxm
- https://github.com/angular/angular/pull/69197
- https://github.com/angular/angular/commit/eeb03f4ea310e2e51ba5d53a421ec7b418e186cd
- https://nvd.nist.gov/vuln/detail/CVE-2026-54268
- https://github.com/advisories/GHSA-48r7-hpm6-gfxm
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
@​angular/common: Weak 32-Bit Cache Key Hashing in HttpTransferCache Leading to Cross-Request Data Leakage and State Poisoning#
CVE-2026-54266 / GHSA-39pv-4j6c-2g6v
More information
Details#
Angular's HttpTransferCache caches HTTP requests made during Server-Side Rendering (SSR) so that they can be reused during client-side hydration. This avoids repeating the same HTTP requests on the client. The cached responses are stored in TransferState using a cache key generated by hashing request properties (method, response type, mapped URL, serialized body, and sorted query parameters).
The cache keys are generated using a weak 32-bit DJB2-like polynomial rolling hash. The 32-bit hash space is extremely small, allowing attackers to find hash collisions.
An attacker can easily find a query parameter string (e.g., q=aaCAZMMM for a search request) that produces the exact same 32-bit hash as a sensitive endpoint (e.g., /api/user/profile). When a victim visits a crafted link containing the colliding parameter, the SSR process executes both the search request and the profile request. Due to the hash collision, the search response overwrites the profile response in the TransferState cache.
Impact#
When the application attempts to retrieve the cached response for the sensitive endpoint (such as the user's profile), it receives the attacker-controlled response instead. This results in:
- State Poisoning: The application runs with attacker-forged data, which can lead to bypassing client-side security controls or DOM-based Cross-Site Scripting (XSS) if the data is rendered unsafely.
- Information Leakage: If the sensitive response is mistakenly associated with the attacker's search results and rendered on the page, the victim's sensitive data may be disclosed to the attacker.
Patched Versions#
- 22.0.1
- 21.2.17
- 20.3.25
Framework-Level Fix#
The logic has been updated to use a cryptographically secure SHA-256 hash algorithm for generating TransferState cache keys in HttpTransferCache. The cache keys are now 256-bit hexadecimal strings.
Workarounds#
If you cannot upgrade immediately, configure your HttpClient requests to skip transfer caching for sensitive endpoints:
this.http.get('/api/user/profile', {
transferCache: false
});
Alternatively, disable the HTTP transfer cache globally in your application bootstrap config:
import { provideClientHydration, withNoHttpTransferCache } from '@angular/platform-browser';
export const appConfig = {
providers: [
provideClientHydration(
withNoHttpTransferCache()
)
]
};
Credits#
This vulnerability was discovered and reported by CodeMender from Google DeepMind.
Severity#
- CVSS Score: 8.8 / 10 (High)
- Vector String:
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
References#
- https://github.com/angular/angular/security/advisories/GHSA-39pv-4j6c-2g6v
- https://github.com/angular/angular/pull/69153
- https://github.com/angular/angular/commit/5f36274da3f961430ae72865159afa02a1dd9133
- https://nvd.nist.gov/vuln/detail/CVE-2026-54266
- https://github.com/advisories/GHSA-39pv-4j6c-2g6v
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes#
angular/angular (@angular/common)
v21.2.17#
Deprecations#
platform-server#
- XHR support in
@angular/platform-serveris deprecated. Use standardfetchAPIs 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#
| Commit | Type | Description |
|---|---|---|
| 35510746b7 | fix | harden platform location origin validation during SSR |
| 13fb0afe93 | refactor | deprecate ServerXhr (#​69255) |
service-worker#
| Commit | Type | Description |
|---|---|---|
| b9d29381bb | fix | Strips sensitive headers on cross-origin redirects |
v21.2.16#
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 |
v21.2.15#
common#
| Commit | Type | Description |
|---|---|---|
| 7f4ac78994 | fix | add upper bounds for digitsInfo |
| 300f61feb3 | fix | sanitize placeholder |
compiler#
| Commit | Type | Description |
|---|---|---|
| 0b07f47bd6 | fix | normalize tag names with custom namespaces in DomElementSchemaRegistry (#​68925) |
| eb1cbbf2eb | fix | prevent namespaced SVG [removed] elements from being stripped |
| cc1378d54b | fix | sanitize dynamic href and xlink:href bindings on SVG a elements (#​68925) |
| 782e01594e | fix | strip namespaced SVG script elements during template compilation (#​68925) |
core#
| Commit | Type | Description |
|---|---|---|
| ff12fe55ac | fix | normalize tag names in runtime i18n attribute security context lookup (#​68925) |
| e6fe77cc97 | fix | sanitize meta selectors |
| daaf32937f | fix | support prefix-insensitive DOM schema lookups and compile-time i18n attribute validation (#​68925) |
| dada86e43d | fix | synchronize core sanitization schema with compiler (#​68925) |
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 |
v21.2.14#
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 |
v21.2.13#
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 |
v21.2.12#
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 |
v21.2.11#
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 |
v21.2.10#
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 |
v21.2.9#
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: 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 these updates 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
View your CI Pipeline Execution ↗ for commit 6bd285072d29ae287783dd3deed151c20df7b9f5
Command Status Duration Result nx affected --targets=test:sherif,test:knip,tes...✅ Succeeded 1m 40s View ↗ nx run-many --target=build --exclude=examples/**✅ Succeeded <1s View ↗
☁️ Nx Cloud last updated this comment at
2026-08-09 02:04:07UTC@tanstack/angular-store
npm i https://pkg.pr.new/@tanstack/angular-store@353@tanstack/lit-store
npm i https://pkg.pr.new/@tanstack/lit-store@353@tanstack/octane-store
npm i https://pkg.pr.new/@tanstack/octane-store@353@tanstack/preact-store
npm i https://pkg.pr.new/@tanstack/preact-store@353@tanstack/react-store
npm i https://pkg.pr.new/@tanstack/react-store@353@tanstack/solid-store
npm i https://pkg.pr.new/@tanstack/solid-store@353@tanstack/store
npm i https://pkg.pr.new/@tanstack/store@353@tanstack/svelte-store
npm i https://pkg.pr.new/@tanstack/svelte-store@353@tanstack/vue-store
npm i https://pkg.pr.new/@tanstack/vue-store@353commit:
d8d6f12Edited/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.
renovate[bot](GitHub profile, opens in a new tab) changed the title
Autoclosing Skipped#
This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.
Sign in to join this conversation.
⚠️ 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:
The artifact failure details are included below:
File name: pnpm-lock.yaml#