Angular Service Worker Policy-Bypass & Credential-Stripping Vulnerabilities (CVE-2026-50169)
A vulnerability in the @angular/service-worker package causes the service worker to strip strict client-defined redirect policies during request reconstruction, defaulting to automatic redirect following. This bypass allows the service worker to follow HTTP 3xx redirects to sensitive same-origin endpoints, potentially exposing credentials or session-restricted data. Exploitation requires an active Angular service worker, asset group matching the redirected route, same-origin dynamic redirection from public to private endpoints, an authenticated user session, and client-side fetch calls with strict redirect policies. Patches are available in versions 19.2.23, 20.3.22, 21.2.15, and 22.0.0-rc.2.
AI Analysis
Technical Summary
The vulnerability in @angular/service-worker involves the internal helper function used to reconstruct Request objects when intercepting network requests. This function removes the client-defined redirect policy (e.g., redirect: 'error'), causing the service worker to fall back to the browser's default 'follow' redirect behavior. Consequently, client-side fetch calls that expect strict redirect handling are bypassed, allowing the service worker to follow redirects to sensitive same-origin endpoints. This can lead to credential or session data exposure if public dynamic routes redirect to private, authenticated resources. Successful exploitation requires specific conditions including active service worker registration, asset group configuration matching the redirected route, same-origin redirect from public to private endpoints, an authenticated user session, and fetch calls with strict redirect policies. The issue affects versions up to and including 18.2.14 and is fixed in versions 19.2.23 and later.
Potential Impact
Web applications using @angular/service-worker versions <=18.2.14 that rely on strict client-side redirect policies for security can have those policies bypassed. This allows the service worker to automatically follow HTTP 3xx redirects to authenticated same-origin private endpoints, potentially exposing cookies, credentials, or session-restricted data that should have been protected by the redirect policy. The vulnerability compromises the integrity of request-policy enforcement during request reconstruction by the service worker.
Mitigation Recommendations
Patches addressing this vulnerability are available in @angular/service-worker versions 19.2.23, 20.3.22, 21.2.15, and 22.0.0-rc.2. Upgrading to one of these versions or later is the recommended remediation. If immediate upgrade is not feasible, developers should avoid public-to-private dynamic redirections on routes matched by service worker asset groups, apply strict cookie flags (SameSite=Strict; Secure; HttpOnly), isolate credential-guarded routes (e.g., via subdomains), and exclude secure endpoints from service worker asset group configurations in ngsw-config.json to prevent caching or interception.
Angular Service Worker Policy-Bypass & Credential-Stripping Vulnerabilities (CVE-2026-50169)
Description
A vulnerability in the @angular/service-worker package causes the service worker to strip strict client-defined redirect policies during request reconstruction, defaulting to automatic redirect following. This bypass allows the service worker to follow HTTP 3xx redirects to sensitive same-origin endpoints, potentially exposing credentials or session-restricted data. Exploitation requires an active Angular service worker, asset group matching the redirected route, same-origin dynamic redirection from public to private endpoints, an authenticated user session, and client-side fetch calls with strict redirect policies. Patches are available in versions 19.2.23, 20.3.22, 21.2.15, and 22.0.0-rc.2.
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 vulnerability in @angular/service-worker involves the internal helper function used to reconstruct Request objects when intercepting network requests. This function removes the client-defined redirect policy (e.g., redirect: 'error'), causing the service worker to fall back to the browser's default 'follow' redirect behavior. Consequently, client-side fetch calls that expect strict redirect handling are bypassed, allowing the service worker to follow redirects to sensitive same-origin endpoints. This can lead to credential or session data exposure if public dynamic routes redirect to private, authenticated resources. Successful exploitation requires specific conditions including active service worker registration, asset group configuration matching the redirected route, same-origin redirect from public to private endpoints, an authenticated user session, and fetch calls with strict redirect policies. The issue affects versions up to and including 18.2.14 and is fixed in versions 19.2.23 and later.
Potential Impact
Web applications using @angular/service-worker versions <=18.2.14 that rely on strict client-side redirect policies for security can have those policies bypassed. This allows the service worker to automatically follow HTTP 3xx redirects to authenticated same-origin private endpoints, potentially exposing cookies, credentials, or session-restricted data that should have been protected by the redirect policy. The vulnerability compromises the integrity of request-policy enforcement during request reconstruction by the service worker.
Mitigation Recommendations
Patches addressing this vulnerability are available in @angular/service-worker versions 19.2.23, 20.3.22, 21.2.15, and 22.0.0-rc.2. Upgrading to one of these versions or later is the recommended remediation. If immediate upgrade is not feasible, developers should avoid public-to-private dynamic redirections on routes matched by service worker asset groups, apply strict cookie flags (SameSite=Strict; Secure; HttpOnly), isolate credential-guarded routes (e.g., via subdomains), and exclude secure endpoints from service worker asset group configurations in ngsw-config.json to prevent caching or interception.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-gv2q-mqqv-365m
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-50169"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a58b41068715ace43d67d5e
Added to database: 07/16/2026, 10:36:00 UTC
Last enriched: 07/16/2026, 10:52:52 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 9
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.