Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @angular/service-worker
  4. ›
  5. CVE-2026-50184

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

June 15, 2026

An issue in the @angular/service-worker package compromises the integrity of request-policy enforcement during request reconstruction. When the Angular Service Worker intercepts network requests for matched assets, it reconstructs a new Request object using an internal helper function.

During this reconstruction process, the helper function strips explicit client-defined safety parameters: the credentials configuration (such as credentials: 'omit') and the HTTP cache mode configuration (such as cache: 'no-store'). These are reverted back to standard browser-default parameters (credentials: 'same-origin' and default HTTP cache properties).

This causes the browser to include active credentials (such as cookies or Authorization headers) on outbound requests where the client-side developer explicitly instructed they should be omitted, leading to potential session leaks. Additionally, it causes private or non-cacheable resources to be cached by the service worker’s engine, making private page states accessible or persistent inside the client’s local cache post-logout.

References

  • github.com/advisories/GHSA-95qp-cmmw-mgqv
  • github.com/angular/angular/pull/68904
  • github.com/angular/angular/security/advisories/GHSA-95qp-cmmw-mgqv
  • nvd.nist.gov/vuln/detail/CVE-2026-50184

Code Behaviors & Features

Detect and mitigate CVE-2026-50184 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 18.2.14, all versions starting from 19.0.0-next.0 before 19.2.23, all versions starting from 20.0.0-next.0 before 20.3.22, all versions starting from 21.0.0-next.0 before 21.2.15, all versions starting from 22.0.0-next.0 before 22.0.0-rc.2

Fixed versions

  • 19.2.23
  • 20.3.22
  • 21.2.15
  • 22.0.0-rc.2

Solution

Upgrade to versions 19.2.23, 20.3.22, 21.2.15, 22.0.0-rc.2 or above.

Impact 4.7 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-524: Use of Cache Containing Sensitive Information

Source file

npm/@angular/service-worker/CVE-2026-50184.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 16 Jun 2026 00:18:40 +0000.