Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify SSR Angular target and sensitive endpoint
-
DeliveryBrute-force colliding 32-bit hash query string
-
ExploitDeliver crafted link to victim
-
ExecutionSSR renders both requests, attacker response overwrites cache
-
PersistClient hydrates with poisoned TransferState
-
ImpactForged data rendered as profile, triggering XSS or leaking victim data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Irreversible hash functions
|
| Exploitation Conditions | The target application must (1) use @angular/common at a vulnerable version, (2) enable Angular Server-Side Rendering with client hydration, and (3) leave HttpTransferCache active (the default) for the sensitive endpoint - i.e., not have opted that request out via transferCache: false or globally disabled it via withNoHttpTransferCache(). Both the sensitive request and an attacker-influenceable request (such as a search endpoint that accepts arbitrary query parameters and is fetched during SSR for the same page render) must be issued in the same SSR render. Exploitation also requires the victim to load an attacker-crafted URL containing the precomputed colliding query string; pure backend services, client-only SPAs, and SSR apps that route sensitive endpoints through transferCache: false are not exploitable. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N) supports a base score of 8.8 and is plausible: the attack is launched remotely against an SSR-enabled Angular app, requires no authentication, and exploitation is mechanical once a colliding query string is precomputed. However, real-world risk is more nuanced - the victim must follow an attacker-crafted link (a UI-driven element not captured in the 4.0 UI:N choice), the target app must use Angular SSR with HttpTransferCache enabled (default in modern hydration setups), and the sensitive endpoint and its rendering path must allow attacker-supplied data to either reach the DOM unsafely (for XSS) or leak server-side data back to the attacker. EPSS data was not provided, and the CVE is not on the CISA KEV list, so exploitation is unconfirmed in the wild. The disclosure by Google DeepMind's CodeMender and the trivial hash-collision math mean a working PoC is technically straightforward, elevating this above a purely theoretical issue. |
| Exploit ScenarioDerived | An attacker precomputes a query string (such as ?q=aaCAZMMM) whose 32-bit hash collides with the cache key of a sensitive endpoint like /api/user/profile, hosts attacker-controlled content at the colliding search URL, and sends the victim a link to the Angular SSR app that triggers both requests during SSR. The attacker's response overwrites the legitimate profile response in TransferState, so when the hydrated client reads the cached profile it renders attacker-controlled JSON - leading to DOM-based XSS if the data is sunk into the DOM unsafely, or causing the victim's real profile data to be displayed in the attacker's search-result slot and exfiltrated. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 22, 2026
Cache key collision in Angular's @angular/common HttpTransferCache allows remote attackers to poison Server-Side Rendering (SSR) cache entries and replace responses for sensitive endpoints with attacker-controlled content. The weak 32-bit DJB2-like polynomial rolling hash used for TransferState cache keys is trivially brute-forceable, enabling state poisoning, DOM-based XSS, and information leakage when a victim follows a crafted link. No public exploit identified at time of analysis, but the vulnerability was discovered and reported by Google DeepMind's CodeMender and is patched in Angular 22.0.1, 21.2.17, and 20.3.25.
Earlier versions of this analysis (2)
Cache key collision in Angular's @angular/common HttpTransferCache allows remote attackers to poison the SSR-to-client TransferState cache by crafting query strings whose weak 32-bit DJB2-like hash collides with sensitive endpoint URLs. When a victim follows an attacker-supplied link, the attacker-controlled response overwrites a legitimate cached response (such as /api/user/profile), enabling state poisoning, DOM-based XSS, and disclosure of victim data into attacker-controlled views. No public exploit identified at time of analysis, but the collision technique is documented in the advisory and the small 32-bit hash space makes practical exploitation straightforward.
Cache poisoning in Angular's @angular/common HttpTransferCache allows remote attackers to swap server-side rendered HTTP responses by exploiting a weak 32-bit DJB2-style hash used for TransferState cache keys. By crafting a query parameter that collides with the hash of a sensitive endpoint (e.g. /api/user/profile), an attacker can lure a victim into a URL that causes the SSR process to overwrite the legitimate cached response with attacker-controlled data, leading to state poisoning, DOM-based XSS, or disclosure of the victim's data. No public exploit identified at time of analysis, though the advisory itself documents a working collision example (q=aaCAZMMM).
RemediationAI
Vendor-released patch: upgrade @angular/common to 22.0.1, 21.2.17, or 20.3.25 depending on your major version line, per GHSA-39pv-4j6c-2g6v (https://github.com/angular/angular/security/advisories/GHSA-39pv-4j6c-2g6v); the underlying fix is in PR https://github.com/angular/angular/pull/69153 / commit 5f36274da3f961430ae72865159afa02a1dd9133, which replaces the 32-bit hash with SHA-256. Users still on 19.x have no upstream fix and should plan a major-version upgrade. As a workaround until upgrade, opt sensitive HttpClient calls out of the cache with transferCache: false (e.g., this.http.get('/api/user/profile', { transferCache: false })) - this incurs an extra client-side round-trip per protected endpoint but immediately removes the collision risk for that response. Alternatively, disable transfer caching globally by registering provideClientHydration(withNoHttpTransferCache()) in the application bootstrap providers, accepting the latency cost of re-issuing all SSR HTTP requests on the client.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is in @angular/common's HttpTransferCache mechanism, which serializes HTTP responses gathered during SSR into TransferState so the client can reuse them during hydration without re-issuing requests. Cache keys are derived from request method, response type, mapped URL, body, and sorted query parameters - but were hashed with a custom 32-bit DJB2-like polynomial rolling hash. CWE-328 (Use of Weak Hash) captures the root cause: a 32-bit non-cryptographic hash provides only ~4.3 billion buckets, allowing collisions to be found in seconds with simple brute force. Because retrieveStateFromCache lookups are keyed solely on this hash, a colliding pair of requests share one cache slot and the later-stored response silently replaces the earlier one. The fix in PR #69153 (commit 5f36274) switches the algorithm to SHA-256 hexadecimal keys, removing the collision attack surface.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable SSR app, but requires a victim to click a crafted link (UI:R), a precomputed collision and SSR-cacheable sensitive endpoint (AC:H); poisoned cache crosses SSR-to-client trust boundary (S:C) with high confidentiality and limited integrity impact.
Primary rating from Vendor (https://github.com/angular/angular).
CVSS VectorVendor: https://github.com/angular/angular
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
A cache poisoning vulnerability in Angular's Server-Side Rendering component (CVE-2026-54266, CVSS 8.8) enables attackers to inject malicious content into application responses, compromising user sessions and exposing sensitive data. Organizations operating SSR-enabled Angular applications face immediate risk and must patch urgently to prevent users from being redirected to attacker-controlled endpoints when following crafted links.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-38269
GHSA-39pv-4j6c-2g6v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB