@angular/service-worker: Request Credential & Cache Policy Stripping (CVE-2026-50184)
A vulnerability in the @angular/service-worker package causes the service worker to strip explicit client-defined request credentials and cache policies during request reconstruction. This results in the browser sending credentials like cookies or authorization headers on requests where the client intended to omit them, potentially exposing session information. Additionally, private or non-cacheable resources may be cached, leading to persistent access to sensitive data after logout. Applications using affected versions of @angular/service-worker with active service workers and asset group patterns matching dynamic endpoints are vulnerable. Patches are available in versions 19.2.23 and later.
AI Analysis
Technical Summary
The @angular/service-worker package improperly reconstructs network requests by removing explicit client-specified safety parameters such as 'credentials: omit' and 'cache: no-store', reverting them to default values ('credentials: same-origin' and default cache). This behavior causes browsers to include active credentials on requests that should omit them, risking session leaks. It also causes private or dynamic resources to be cached by the service worker, potentially exposing sensitive data post-logout. Exploitation requires an active Angular Service Worker registration, asset group patterns matching the targeted routes, an authenticated user session, and client-side fetch calls with explicit safety parameters. The vulnerability affects versions up to and including 18.2.14 and is patched in versions 19.2.23, 20.3.22, 21.2.15, and 22.0.0-rc.2.
Potential Impact
Applications using vulnerable versions of @angular/service-worker may unintentionally expose session credentials to endpoints that should not receive them, leading to potential session leakage. Additionally, sensitive or private resources may be cached by the service worker despite client instructions not to cache, resulting in persistent access to user data after logout. This undermines confidentiality and session integrity for affected web applications.
Mitigation Recommendations
Patches are available in @angular/service-worker versions 19.2.23, 20.3.22, 21.2.15, and 22.0.0-rc.2 and should be applied to remediate this issue. If immediate upgrade is not feasible, developers should configure session cookies with strict flags (SameSite=Strict; Secure; HttpOnly), exclude secure or dynamic endpoints from service worker asset groups in ngsw-config.json, and programmatically clear the Angular Service Worker cache storage upon user logout to prevent stale sensitive data persistence.
@angular/service-worker: Request Credential & Cache Policy Stripping (CVE-2026-50184)
Description
A vulnerability in the @angular/service-worker package causes the service worker to strip explicit client-defined request credentials and cache policies during request reconstruction. This results in the browser sending credentials like cookies or authorization headers on requests where the client intended to omit them, potentially exposing session information. Additionally, private or non-cacheable resources may be cached, leading to persistent access to sensitive data after logout. Applications using affected versions of @angular/service-worker with active service workers and asset group patterns matching dynamic endpoints are vulnerable. Patches are available in versions 19.2.23 and later.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The @angular/service-worker package improperly reconstructs network requests by removing explicit client-specified safety parameters such as 'credentials: omit' and 'cache: no-store', reverting them to default values ('credentials: same-origin' and default cache). This behavior causes browsers to include active credentials on requests that should omit them, risking session leaks. It also causes private or dynamic resources to be cached by the service worker, potentially exposing sensitive data post-logout. Exploitation requires an active Angular Service Worker registration, asset group patterns matching the targeted routes, an authenticated user session, and client-side fetch calls with explicit safety parameters. The vulnerability affects versions up to and including 18.2.14 and is patched in versions 19.2.23, 20.3.22, 21.2.15, and 22.0.0-rc.2.
Potential Impact
Applications using vulnerable versions of @angular/service-worker may unintentionally expose session credentials to endpoints that should not receive them, leading to potential session leakage. Additionally, sensitive or private resources may be cached by the service worker despite client instructions not to cache, resulting in persistent access to user data after logout. This undermines confidentiality and session integrity for affected web applications.
Mitigation Recommendations
Patches are available in @angular/service-worker versions 19.2.23, 20.3.22, 21.2.15, and 22.0.0-rc.2 and should be applied to remediate this issue. If immediate upgrade is not feasible, developers should configure session cookies with strict flags (SameSite=Strict; Secure; HttpOnly), exclude secure or dynamic endpoints from service worker asset groups in ngsw-config.json, and programmatically clear the Angular Service Worker cache storage upon user logout to prevent stale sensitive data persistence.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-95qp-cmmw-mgqv
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-50184"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a58b41068715ace43d67d4c
Added to database: 07/16/2026, 10:36:00 UTC
Last enriched: 07/16/2026, 10:52:22 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.