@angular/service-worker
Affected
- introduced
22.0.0-next.0, fixed22.0.1(semver)
Fixed versions
22.0.1
Fix
- Fixed version
22.0.1npm install @angular/[email protected]
Advisory
Also known as: CVE-2026-54264
@angular/service-worker: Sensitive Header Leakage on Cross-Origin Redirects in Angular Service Worker
An information disclosure vulnerability exists in the @angular/service-worker package of the Angular framework. When the Service Worker fetches assets, it preserves metadata (such as headers) from the original request. However, on cross-origin redirects, the Service Worker fails to strip sensitive headers, violating the Fetch redirect algorithm.
This allows a remote attacker to obtain sensitive credentials (e.g., Authorization tokens, Proxy-Authorization credentials, or session cookies) by triggering a cross-origin redirect to an untrusted external origin.
Impact
If an application configured with the Angular Service Worker fetches assets with credential headers (such as Authorization header), and one of those requests is redirected to a different origin, the Service Worker will forward those headers to the new origin. This exposes critical credentials and session identifiers to unauthorized third-party servers.
Attack Preconditions
For this vulnerability to be exploitable:
@angular/service-worker package to fetch assets.Authorization, Proxy-Authorization, or rely on cookies) to asset-group requests.Patched Versions
Credits
This vulnerability was discovered and reported by CodeMender from Google DeepMind.
High Basis: The source's own band: HIGH
22.0.0-next.0, fixed 22.0.1 (semver)22.0.1
22.0.1npm install @angular/[email protected]21.0.0-next.0, fixed 21.2.17 (semver)21.2.17
21.2.17npm install @angular/[email protected]20.0.0-next.0, fixed 20.3.25 (semver)20.3.25
20.3.25npm install @angular/[email protected]0, last affected 19.2.25 (semver)None listed
No fixed version is listed.
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