CVE-2026-54264: Angular: Sensitive Header Leakage on Cross-Origin Redirects in Angular Service Worker

Published Jun 15, 2026
·
Updated

An information disclosure vulnerability exists in the @angular/service-worker package of the Angular framework. When the Service Worker fetches assets, it preserves metadata (such as headers) from the original request. However, on cross-origin redirects, the Service Worker fails to strip sensitive headers, violating the Fetch redirect algorithm.

This allows a remote attacker to obtain sensitive credentials (e.g., Authorization tokens, Proxy-Authorization credentials, or session cookies) by triggering a cross-origin redirect to an untrusted external origin.

Impact If an application configured with the Angular Service Worker fetches assets with credential headers (such as Authorization header), and one of those requests is redirected to a different origin, the Service Worker will forward those headers to the new origin. This exposes critical credentials and session identifiers to unauthorized third-party servers.

Attack Preconditions For this vulnerability to be exploitable: 1. Vulnerable Configuration: The application must utilize the @angular/service-worker package to fetch assets. 2. Credentialed Requests: The application must attach sensitive request headers (like Authorization, Proxy-Authorization, or rely on cookies) to asset-group requests. 3. Redirect Flow: These requests must encounter a cross-origin redirect to an attacker-controlled or untrusted domain.

Patched Versions 22.0.1 21.2.17 20.3.25

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

Other sources

Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 22.0.1, 21.2.17, and 20.3.25, an information disclosure vulnerability exists in the @angular/service-worker package of the Angular framework. When the Service Worker fetches assets, it preserves metadata (such as headers) from the original request. However, on cross-origin redirects, the Service Worker fails to strip sensitive headers, violating the Fetch redirect algorithm. This allows a remote attacker to obtain sensitive credentials (e.g., Authorization tokens, Proxy-Authorization credentials, or session cookies) by triggering a cross-origin redirect to an untrusted external origin. This vulnerability is fixed in 22.0.1, 21.2.17, and 20.3.25.

MITRE

Affected Software

8 affected componentsFixes available
npm/@angular/service-worker<=19.2.25
npm/@angular/service-worker>=20.0.0-next.0<20.3.25
20.3.25
npm/@angular/service-worker>=21.0.0-next.0<21.2.17
21.2.17
npm/@angular/service-worker>=22.0.0-next.0<22.0.1
22.0.1
angular Angular Node.js<=19.2.25
angular Angular Node.js>=20.0.0<20.3.25
angular Angular Node.js>=21.0.0<21.2.17
angular Angular Node.js>=22.0.0<22.0.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@angular/service-worker to a version that resolves this vulnerability.

    Fixed in 20.3.25
  2. Upgrade

    Upgrade npm/@angular/service-worker to a version that resolves this vulnerability.

    Fixed in 21.2.17
  3. Upgrade

    Upgrade npm/@angular/service-worker to a version that resolves this vulnerability.

    Fixed in 22.0.1
  4. Upgrade

    Upgrade @angular/service-worker (Angular framework) to a version that resolves this vulnerability.

    Fixed in 22.0.1
  5. Upgrade

    Upgrade @angular/service-worker (Angular framework) to a version that resolves this vulnerability.

    Fixed in 21.2.17
  6. Upgrade

    Upgrade @angular/service-worker (Angular framework) to a version that resolves this vulnerability.

    Fixed in 20.3.25

Event History

Jun 15, 2026
Advisory Published
via GitHub·05:25 PM
Data Sourced
via GitHub·05:25 PM
DescriptionWeaknessAffected Software
Jun 22, 2026
CVE Published
via MITRE·03:32 PM
Data Sourced
via MITRE·03:32 PM
DescriptionWeakness
Data Sourced
via NVD·04:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-54264?

CVE-2026-54264 has a risk rating of 54, indicating a moderate level of severity.

2

How can I fix CVE-2026-54264?

To fix CVE-2026-54264, update the @angular/service-worker package to the latest version that addresses this vulnerability.

3

What is the nature of the issue in CVE-2026-54264?

CVE-2026-54264 is an information disclosure vulnerability that occurs due to the preservation of metadata on cross-origin redirects.

4

Which software is affected by CVE-2026-54264?

CVE-2026-54264 affects the @angular/service-worker package in the Angular framework.

5

When was CVE-2026-54264 published?

CVE-2026-54264 was published on June 15, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203