Skip to main content

Angular CVE-2026-54266

| EUVDEUVD-2026-38269 HIGH
Use of Weak Hash (CWE-328)
2026-06-15 https://github.com/angular/angular GHSA-39pv-4j6c-2g6v
8.8
CVSS 4.0 · Vendor: https://github.com/angular/angular
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify SSR Angular target and sensitive endpoint
  2. Delivery
    Brute-force colliding 32-bit hash query string
  3. Exploit
    Deliver crafted link to victim
  4. Execution
    SSR renders both requests, attacker response overwrites cache
  5. Persist
    Client hydrates with poisoned TransferState
  6. Impact
    Forged 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – 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)
v2 Jun 22, 2026 - 17:00 cvss changed CVSS 8.8

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.

v1 Jun 15, 2026 - 17:53

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

angular 20.0.0-next.0 < 20.3.25
angular ≤ 19.2.25
angular 22.0.0-next.0 < 22.0.1
angular 21.0.0-next.0 < 21.2.17

Affected Packages

npm @angular/common fix: 20.3.25, 21.2.17, 22.0.1
euvd angular fix: 20.3.25, 21.2.17, 22.0.1

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

Vendor (https://github.com/angular/angular) PRIMARY 8.8 HIGH
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
vuln.today AI 6.9 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/angular/angular).

CVSS VectorVendor: https://github.com/angular/angular

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Jun 22, 2026 - 17:00 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 22, 2026 - 17:00 vuln.today
v2 - CVSS changed
CVSS changed
Jun 22, 2026 - 16:52 NVD
8.8 (HIGH)

DescriptionCVE.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:

ts
this.http.get('/api/user/profile', {
  transferCache: false
});

Alternatively, disable the HTTP transfer cache globally in your application bootstrap config:

ts

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy