CVE-2026-50170: @angular/common Information Leak via Default Caching of Credentialed Requests in HttpTransferCache

@angular/common Updated 15 Jun 2026

Summary

15/06/2026
Yes i
High
8.2

CVE-2026-50170: @angular/common: Information Leak via Default Caching of Credentialed Requests in HttpTransferCache. Affects @angular/common 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The @angular/common package is a core part of the Angular framework, providing essential functionalities for building web applications. It includes utilities for handling HTTP requests, among other features. However, when Server-Side Rendering (SSR) and hydration are enabled, the package can inadvertently expose sensitive user data due to improper caching mechanisms.

Vulnerability Detail

A vulnerability exists in @angular/common related to the HttpTransferCache utility, which is designed to optimize hydration by caching HTTP requests during SSR. The flaw arises because the caching mechanism does not consider the 'withCredentials' flag or the 'Cookie' header, leading to the potential caching of user-specific responses. This could allow an unauthenticated attacker to access sensitive information from other authenticated users if the SSR-rendered HTML is cached in a shared environment, such as a CDN or reverse proxy.

How To Fix

Latest published version: 22.2.3 as of 23 Oct 2026

npm install @angular/common@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/common@18.2.14
  • >= 19.0.0-next.0, < 19.2.23 19.2.23
    npm install @angular/common@19.2.23
  • >= 20.0.0-next.0, < 20.3.22 20.3.22
    npm install @angular/common@20.3.22
  • >= 21.0.0-next.0, < 21.2.15 21.2.15
    npm install @angular/common@21.2.15
  • >= 22.0.0-next.0, < 22.0.0-rc.2 22.0.0-rc.2
    npm install @angular/common@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

As a temporary workaround, ensure that your application does not cache SSR-rendered HTML responses that include user-specific data. Implement cache-control headers to prevent shared caching of sensitive content until the package can be updated.

Conclusion

The vulnerability CVE-2026-50170 in the @angular/common package poses a significant risk of information leakage due to improper caching of credentialed requests during Server-Side Rendering. It is crucial to update to the patched versions to mitigate this risk and ensure user data remains secure.

See every vulnerability recorded for @angular/common →

Share this vulnerability

FAQ

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

Affected versions include all versions prior to the patched releases: 22.0.0-rc.2, 21.2.15, 20.3.22, and 19.2.23.

You can use Vulert, which monitors open-source vulnerabilities in your software. By analyzing your package-lock.json file, it can alert you to any vulnerabilities, including this one.

If immediate updates are not possible, implement cache-control headers to prevent caching of sensitive SSR-rendered HTML responses as a temporary workaround.

Detailed information about this vulnerability can be found in the advisory database on GitHub and through the official Angular documentation.

Related vulnerabilities

Recent vulnerabilities recorded for @angular/common.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 22.2.3 as of 23 Oct 2026

npm install @angular/common@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/common@18.2.14
  • >= 19.0.0-next.0, < 19.2.23 19.2.23
    npm install @angular/common@19.2.23
  • >= 20.0.0-next.0, < 20.3.22 20.3.22
    npm install @angular/common@20.3.22
  • >= 21.0.0-next.0, < 21.2.15 21.2.15
    npm install @angular/common@21.2.15
  • >= 22.0.0-next.0, < 22.0.0-rc.2 22.0.0-rc.2
    npm install @angular/common@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