@angular/common
Affected
- introduced
22.0.0-next.0, fixed22.0.0-rc.2(semver)
Fixed versions
22.0.0-rc.2
Fix
- Fixed version
22.0.0-rc.2npm install @angular/[email protected]
Advisory
Also known as: CVE-2026-50170
@angular/common: Information Leak via Default Caching of Credentialed Requests in HttpTransferCache
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:
Attack Preconditions
provideClientHydration()). withCredentials: true) during the initial server-side render. Patches
High Basis: The source's own band: HIGH
22.0.0-next.0, fixed 22.0.0-rc.2 (semver)22.0.0-rc.2
22.0.0-rc.2npm install @angular/[email protected]20.0.0-next.0, fixed 20.3.22 (semver)20.3.22
20.3.22npm install @angular/[email protected]19.0.0-next.0, fixed 19.2.23 (semver)19.2.23
19.2.23npm install @angular/[email protected]0, last affected 18.2.14 (semver)None listed
No fixed version is listed.
21.0.0-next.0, fixed 21.2.15 (semver)21.2.15
21.2.15npm install @angular/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0