CVE-2026-54264: @angular/service-worker Sensitive Header Leakage on Cross-Origin Redirects

@angular/service-worker Updated 23 Jun 2026

Summary

15/06/2026
Yes i
High
8.3

CVE-2026-54264: @angular/service-worker: Sensitive Header Leakage on Cross-Origin Redirects in Angular Service Worker. Affects @angular/service-worker across 4 version ranges.

< 19.2.25 >= 20.0.0-next.0, < 20.3.25 >= 21.0.0-next.0, < 21.2.17 >= 22.0.0-next.0, < 22.0.1

Fixed in 4 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 crucial component of the Angular framework, enabling developers to create Progressive Web Applications (PWAs) that can work offline and load faster. It manages caching and asset fetching, enhancing user experience by allowing applications to run smoothly even in low connectivity scenarios. However, this package is susceptible to vulnerabilities that can compromise sensitive data during cross-origin requests.

Vulnerability Detail

An information disclosure vulnerability exists in the @angular/service-worker package. When the Service Worker fetches assets, it retains metadata from the original request, including sensitive headers. On cross-origin redirects, the Service Worker fails to remove these sensitive headers, violating the Fetch redirect algorithm. This flaw allows remote attackers to obtain sensitive credentials, such as Authorization tokens and session cookies, by redirecting requests to untrusted external origins. The vulnerability can be exploited if the application uses the @angular/service-worker package with credentialed requests that encounter cross-origin redirects.

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.

  • < 19.2.25 19.2.25
    npm install @angular/service-worker@19.2.25
  • >= 20.0.0-next.0, < 20.3.25 20.3.25
    npm install @angular/service-worker@20.3.25
  • >= 21.0.0-next.0, < 21.2.17 21.2.17
    npm install @angular/service-worker@21.2.17
  • >= 22.0.0-next.0, < 22.0.1 22.0.1
    npm install @angular/service-worker@22.0.1

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

Workaround

As a temporary workaround, consider avoiding the use of sensitive headers in requests that may be redirected to untrusted origins. Additionally, review your application’s architecture to minimize the risk of cross-origin redirects.

Conclusion

The @angular/service-worker package has a critical vulnerability that can lead to sensitive header leakage during cross-origin redirects. It is essential to update to the patched versions to protect your application from potential data breaches. Implementing workarounds can provide temporary relief until the update is completed.

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

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 8.3, indicating a high severity level.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.

Sensitive headers at risk include Authorization tokens, Proxy-Authorization credentials, and session cookies.

If immediate updates are not possible, consider implementing workarounds such as avoiding sensitive headers in requests that may be redirected.

This vulnerability was discovered and reported by CodeMender from Google DeepMind.

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.

  • < 19.2.25 19.2.25
    npm install @angular/service-worker@19.2.25
  • >= 20.0.0-next.0, < 20.3.25 20.3.25
    npm install @angular/service-worker@20.3.25
  • >= 21.0.0-next.0, < 21.2.17 21.2.17
    npm install @angular/service-worker@21.2.17
  • >= 22.0.0-next.0, < 22.0.1 22.0.1
    npm install @angular/service-worker@22.0.1

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