Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 94%

Angular Service Worker Policy-Bypass & Credential-Stripping Vulnerabilities (CVE-2026-50169)

0
Medium
Published: 06/15/2026 (06/15/2026, 16:44:21 UTC)
Source: GCVE Database
Product: @angular/service-worker

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

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Affected software

npmghsa
@angular/service-worker
Affected versions
>=22.0.0-next.0 <22.0.0-rc.2
npmghsa
@angular/service-worker
Affected versions
>=20.0.0-next.0 <20.3.22
npmghsa
@angular/service-worker
Affected versions
>=19.0.0-next.0 <19.2.23
npmghsa
@angular/service-worker
Affected versions
<=18.2.14
npmghsa
@angular/service-worker
Affected versions
>=21.0.0-next.0 <21.2.15

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

AILast updated: 07/16/2026, 10:52:52 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses