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 95%

@angular/service-worker: Request Credential & Cache Policy Stripping (CVE-2026-50184)

0
Medium
Published: 06/15/2026 (06/15/2026, 17:13:05 UTC)
Source: GCVE Database
Product: @angular/service-worker

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

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
>=21.0.0-next.0 <21.2.15
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

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:22 UTC

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.

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-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 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