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

@angular/service-worker Updated 23 Jun 2026

Summary

15/06/2026
Yes i
Moderate
5.7

CVE-2026-50169: Angular Service Worker Policy-Bypass & Credential-Stripping Vulnerabilities. Affects @angular/service-worker across 5 version ranges.

< 18.2.14 >= 19.0.0-next.0, < 19.2.23 >= 20.0.0-next.0, < 20.3.22 >= 21.0.0-next.0, < 21.2.15 >= 22.0.0-next.0, < 22.0.0-rc.2

Fixed in 5 releases; the minimum fixed version depends on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The @angular/service-worker package is a critical component of Angular applications, enabling the implementation of service workers for caching and offline capabilities. It allows developers to enhance user experience by serving cached assets and managing network requests efficiently. However, a recent vulnerability has been identified that compromises the integrity of request-policy enforcement during request reconstruction, exposing applications to potential security risks.

Vulnerability Detail

An issue in the @angular/service-worker package allows the service worker to bypass strict client-defined request redirect policies. When intercepting network requests, the service worker reconstructs a new Request object, inadvertently stripping the redirect policy configuration. This leads to automatic following of HTTP 3xx redirects, potentially exposing sensitive data or credentials if public routes redirect to secure endpoints. The vulnerability arises when an active Angular Service Worker is present, and the application makes client-side fetch calls with strict safety parameters, allowing unintended access to session-restricted resources.

How To Fix

Latest published version: 22.2.3 as of 23 Oct 2026

npm install @angular/service-worker@22.2.3

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 18.2.14 18.2.14
    npm install @angular/service-worker@18.2.14
  • >= 19.0.0-next.0, < 19.2.23 19.2.23
    npm install @angular/service-worker@19.2.23
  • >= 20.0.0-next.0, < 20.3.22 20.3.22
    npm install @angular/service-worker@20.3.22
  • >= 21.0.0-next.0, < 21.2.15 21.2.15
    npm install @angular/service-worker@21.2.15
  • >= 22.0.0-next.0, < 22.0.0-rc.2 22.0.0-rc.2
    npm install @angular/service-worker@22.0.0-rc.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If immediate upgrading is not feasible, consider implementing the following workarounds: 1. Avoid public-to-private dynamic redirection by refactoring server architecture to prevent public paths from issuing HTTP 3xx redirects to authenticated secure endpoints. 2. Apply strict flags to session cookies (SameSite=Strict; Secure; HttpOnly) and consider isolating credential-guarded resources. 3. Exclude secure endpoints from the service worker configuration by verifying your ngsw-config.json settings.

Conclusion

The CVE-2026-50169 vulnerability in the @angular/service-worker package poses a significant risk to web applications by allowing unintended access to sensitive data through policy-bypass. It is crucial for developers to update to the latest patched versions and implement recommended workarounds to mitigate potential security threats.

See every vulnerability recorded for @angular/service-worker →

Share this vulnerability

FAQ

CVE-2026-50169 is a vulnerability in the @angular/service-worker package that allows for policy-bypass and credential stripping, potentially exposing sensitive data.

If your application uses the @angular/service-worker package and makes client-side fetch requests with strict policies, it may unintentionally expose sensitive data through HTTP redirects.

The patched versions of the @angular/service-worker package are 22.0.0-rc.2, 21.2.15, 20.3.22, and 19.2.23.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check if your application is affected by using the Vulert playground without any signup.

The CVSS score of this vulnerability is 5.7, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for @angular/service-worker.

How To Fix

Latest published version: 22.2.3 as of 23 Oct 2026

npm install @angular/service-worker@22.2.3

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 18.2.14 18.2.14
    npm install @angular/service-worker@18.2.14
  • >= 19.0.0-next.0, < 19.2.23 19.2.23
    npm install @angular/service-worker@19.2.23
  • >= 20.0.0-next.0, < 20.3.22 20.3.22
    npm install @angular/service-worker@20.3.22
  • >= 21.0.0-next.0, < 21.2.15 21.2.15
    npm install @angular/service-worker@21.2.15
  • >= 22.0.0-next.0, < 22.0.0-rc.2 22.0.0-rc.2
    npm install @angular/service-worker@22.0.0-rc.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback