Vulnerabilities in pkg:npm/@angular/common

PACKAGE
Advisory Identifier: GHSA-p297-fm68-3q8c
Advisory Summary

CVE-2026-88059 is a MODERATE (CVSS 4.0) information leak vulnerability (CWE-524: Use of Cache Containing Sensitive Information) affecting Angular libraries in the npm ecosystem. The issue involves information leak via `httptransfercache` bypass when using `withrequestsmadeviaparent`. Remediation is available by upgrading affected packages to version 22.1.1, 21.2.20, 20.3.28.

7 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@angular/common

7 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@angular/common. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-p297-fm68-3q8c CVE-2026-88059 MODERATE Angular: Information Leak via `HttpTransferCache` Bypass When Using `withRequestsMadeViaParent`
GHSA-jhpw-976m-542j CVE-2026-68945 HIGH Angular: Cache-Key Ambiguity in HttpTransferCache Leading to Cross-Request Response Reuse and State Poisoning
GHSA-p3vc-36g9-x9gr CVE-2026-50171 HIGH @angular/common: Denial of Service (DoS) via OOM in Number Formatting (digitsInfo)
GHSA-q6f4-qqrg-jv6x CVE-2026-50170 HIGH @angular/common: Information Leak via Default Caching of Credentialed Requests in HttpTransferCache
GHSA-48r7-hpm6-gfxm CVE-2026-54268 HIGH @angular/common: Denial of Service (DoS) via OOM in Date Formatting (formatDate)
GHSA-39pv-4j6c-2g6v CVE-2026-54266 HIGH @angular/common: Weak 32-Bit Cache Key Hashing in `HttpTransferCache` Leading to Cross-Request Data Leakage and State Poisoning
GHSA-58c5-g7wp-6w37 CVE-2025-66035 HIGH Angular is Vulnerable to XSRF Token Leakage via Protocol-Relative URLs in Angular HTTP Client

CVE-2026-88059 at a Glance

CVE Identifier CVE-2026-88059
GHSA Identifier GHSA-p297-fm68-3q8c
Severity MODERATE
CVSS v3.1 Base Score 4.0
CWE Classification CWE-524: Use of Cache Containing Sensitive Information
Affected Product Angular
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-88059

To remediate this vulnerability, upgrade all affected Angular dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@angular/common fixed: 22.1.1
npm install @angular/common@22.1.1
@angular/common fixed: 21.2.20
npm install @angular/common@21.2.20
@angular/common fixed: 20.3.28
npm install @angular/common@20.3.28
@angular/common fixed: Latest secure release
npm install @angular/common@Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @angular/common

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-88059, inspect your project dependencies using npm:

npm ls @angular/common

Analyze the terminal output to locate any version of Angular in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 22.1.1), your application is affected.

Note: The npm ls @angular/common command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-524: Use of Cache Containing Sensitive Information, where the code uses a cache that contains sensitive information, but the cache can be read by an actor outside of the intended control sphere. In Angular, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A security bypass vulnerability was discovered in `@angular/common` when Server-Side Rendering (SSR) and hydration are enabled in applications using a hierarchical `HttpClient` configuration with `withRequestsMadeViaParent()`. The `HttpTransferCache` utility optimizes hydration by caching outgoing HTTP requests performed during SSR and transferring the cached state to the client-side application via `TransferState` (serialized as JSON in `<script id="ng-state">`). Following the remediation of [CVE-2026-50170](https://github.com/angular/angular/security/advisories/GHSA-q6f4-qqrg-jv6x), `HttpTransferCache` automatically skips caching requests that contain authentication headers or credentials (`Authorization`, `Cookie`, `withCredentials`, etc.). However, when a child `HttpClient` delegates to a parent client via `withRequestsMadeViaParent()`, the child's `TransferCache` interceptor evaluates whether the request is eligible for caching **before** delegating to the parent client's interceptor chain. If an outgoing request originates as anonymous from the child client, the child `TransferCache` marks the request as cacheable. When the request reaches a parent interceptor that injects sensitive authentication credentials (such as an `Authorization` header or API token), the parent `TransferCache` correctly skips caching the authenticated request. However, when the backend returns the private, authenticated response, the child `TransferCache` still stores the response in `TransferState` based on its initial pre-delegation evaluation. ### Impact Successful exploitation allows sensitive, user-specific information belonging to an authenticated user to be leaked to unauthenticated or unauthorized users. This occurs when: 1. During SSR, a child `HttpClient` initiates an unauthenticated request that is subsequently authenticated by a parent interceptor. 2. The authenticated response body is cached into the SSR-rendered HTML page (`TransferState`). 3. The rendered HTML page is stored by a shared caching layer (e.g., CDN, edge cache, or reverse proxy) or served across user sessions. 4. Subsequent visitors requesting the same page receive the cached HTML containing the previous user's private data. ### Attack Preconditions & Vulnerable Configurations An application is affected only if **all** of the following conditions are met: * **SSR and Hydration Enabled:** The application uses Server-Side Rendering with hydration enabled (e.g., via `provideClientHydration()`). * **Hierarchical `HttpClient` with Delegation:** The application configures a child `HttpClient` using `withRequestsMadeViaParent()`. * **Parent-Level Authentication Injection:** Authentication credentials (such as `Authorization` headers, session cookies, or custom API tokens filtered via `withHttpTransferCacheOptions`) are attached by an interceptor in the **parent** injector chain rather than on the initial child request. * **Shared HTML Caching:** The SSR HTML responses are cached by a shared caching layer (CDN, reverse proxy, or application-level HTML cache). #### Vulnerable Code Pattern Example ```ts // Parent Injector / Application Config export const appConfig: ApplicationConfig = { providers: [ provideHttpClient( // Parent interceptor attaches sensitive Authorization header withInterceptors([ (req, next) => next(req.clone({ setHeaders: { Authorization: `Bearer ${getToken()}` } })) ]) ), ], }; // Child Injector / Feature or Component Config const childClient = createEnvironmentInjector( [ // Child delegates to parent; TransferCache evaluates req BEFORE parent auth interceptor runs provideHttpClient(withRequestsMadeViaParent()), ], parentInjector ).get(HttpClient); // Request originates without auth headers -> marked cacheable by child TransferCache childClient.get('/api/user/profile').subscribe(); ``` ### Patches The issue is resolved by updating `@angular/common` to run root interceptors in the terminal request chain so that delegated clients leave inherited root interceptors to the parent chain, preventing duplicate execution and ensuring `HttpTransferCache` evaluates cache eligibility after parent request interceptors run. * `22.1.1` * `21.2.20` * `20.3.28` ### Workarounds & Mitigations For applications that cannot immediately upgrade to a patched version, use one of the following mitigations: 1. **Attach Credentials Before or Within the Child Client:** Ensure authentication headers (e.g., `Authorization`) are attached directly when constructing the request or via an interceptor configured directly on the child `HttpClient`, rather than relying solely on parent interceptors. 2. **Apply Explicit Cache Filters on the Child Client:** Configure `withHttpTransferCacheOptions` with a filter on the child client that explicitly excludes endpoints returning user-specific or sensitive data: ```ts provideClientHydration( withHttpTransferCacheOptions({ filter: (req) => !req.url.includes('/api/private/'), }) ) ``` 3. **Disable HTTP Transfer Cache for Sensitive Routes:** If specific SSR routes handle user-authenticated data, disable transfer caching for those requests or ensure the SSR response sets `Cache-Control: no-store` / `private` headers at your edge/CDN layer so personalized HTML is never shared.

CVE-2026-88059 Affected Angular Versions

4 component(s)
Fixed Versions:
22.1.121.2.2020.3.28
Product / Package Ecosystem Affected Versions Fixed Version
@angular/common
npm
≥ 22.0.0
< 22.1.1
22.1.1
@angular/common
npm
≥ 21.0.0
< 21.2.20
21.2.20
@angular/common
npm
≥ 20.0.0
< 20.3.28
20.3.28
@angular/common
npm
≤ 19.2.25

References

Frequently Asked Questions

What is CVE-2026-88059?
CVE-2026-88059 is a security vulnerability in Angular involving Information Leak via `HttpTransferCache` Bypass When Using `withRequestsMadeViaParent` under CWE-524: Use of Cache Containing Sensitive Information.
Which Angular versions are affected?
Affected versions include releases prior to 22.1.1, 21.2.20, 20.3.28 across affected packages: @angular/common.
What version fixes CVE-2026-88059?
Upgrading to 22.1.1, 21.2.20, 20.3.28 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @angular/common affected?
Yes, @angular/common is affected in releases prior to 22.1.1, 21.2.20, 20.3.28, Latest secure release. Upgrade your dependency to 22.1.1, 21.2.20, 20.3.28, Latest secure release or later.
What is the CVSS score of CVE-2026-88059?
CVE-2026-88059 has a CVSS v3.1 base score of 4.0 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2026-88059?
CVE-2026-88059 is classified under CWE-524: Use of Cache Containing Sensitive Information (The code uses a cache that contains sensitive information, but the cache can be read by an actor outside of the intended control sphere.).
How can I check npm dependencies for CVE-2026-88059?
Run the dependency tree command: 'npm ls @angular/common'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-p297-fm68-3q8c",
  "modified" : "2026-09-10T20:19:20Z",
  "published" : "2026-09-10T20:19:19Z",
  "aliases" : [ "CVE-2026-88059" ],
  "summary" : "Angular: Information Leak via `HttpTransferCache` Bypass When Using `withRequestsMadeViaParent`",
  "details" : "A security bypass vulnerability was discovered in `@angular/common` when Server-Side Rendering (SSR) and hydration are enabled in applications using a hierarchical `HttpClient` configuration with `withRequestsMadeViaParent()`.\n\nThe `HttpTransferCache` utility optimizes hydration by caching outgoing HTTP requests performed during SSR and transferring the cached state to the client-side application via `TransferState` (serialized as JSON in `<script id=\"ng-state\">`). Following the remediation of [CVE-2026-50170](https://github.com/angular/angular/security/advisories/GHSA-q6f4-qqrg-jv6x), `HttpTransferCache` automatically skips caching requests that contain authentication headers or credentials (`Authorization`, `Cookie`, `withCredentials`, etc.).\n\nHowever, when a child `HttpClient` delegates to a parent client via `withRequestsMadeViaParent()`, the child's `TransferCache` interceptor evaluates whether the request is eligible for caching **before** delegating to the parent client's interceptor chain. \n\nIf an outgoing request originates as anonymous from the child client, the child `TransferCache` marks the request as cacheable. When the request reaches a parent interceptor that injects sensitive authentication credentials (such as an `Authorization` header or API token), the parent `TransferCache` correctly skips caching the authenticated request. However, when the backend returns the private, authenticated response, the child `TransferCache` still stores the response in `TransferState` based on its initial pre-delegation evaluation.\n\n### Impact\n\nSuccessful exploitation allows sensitive, user-specific information belonging to an authenticated user to be leaked to unauthenticated or unauthorized users. This occurs when:\n\n1. During SSR, a child `HttpClient` initiates an unauthenticated request that is subsequently authenticated by a parent interceptor.\n2. The authenticated response body is cached into the SSR-rendered HTML page (`TransferState`).\n3. The rendered HTML page is stored by a shared caching layer (e.g., CDN, edge cache, or reverse proxy) or served across user sessions.\n4. Subsequent visitors requesting the same page receive the cached HTML containing the previous user's private data.\n\n### Attack Preconditions & Vulnerable Configurations\n\nAn application is affected only if **all** of the following conditions are met:\n\n* **SSR and Hydration Enabled:** The application uses Server-Side Rendering with hydration enabled (e.g., via `provideClientHydration()`).\n* **Hierarchical `HttpClient` with Delegation:** The application configures a child `HttpClient` using `withRequestsMadeViaParent()`.\n* **Parent-Level Authentication Injection:** Authentication credentials (such as `Authorization` headers, session cookies, or custom API tokens filtered via `withHttpTransferCacheOptions`) are attached by an interceptor in the **parent** injector chain rather than on the initial child request.\n* **Shared HTML Caching:** The SSR HTML responses are cached by a shared caching layer (CDN, reverse proxy, or application-level HTML cache).\n\n#### Vulnerable Code Pattern Example\n\n```ts\n// Parent Injector / Application Config\nexport const appConfig: ApplicationConfig = {\n  providers: [\n    provideHttpClient(\n      // Parent interceptor attaches sensitive Authorization header\n      withInterceptors([\n        (req, next) => next(req.clone({ setHeaders: { Authorization: `Bearer ${getToken()}` } }))\n      ])\n    ),\n  ],\n};\n\n// Child Injector / Feature or Component Config\nconst childClient = createEnvironmentInjector(\n  [\n    // Child delegates to parent; TransferCache evaluates req BEFORE parent auth interceptor runs\n    provideHttpClient(withRequestsMadeViaParent()),\n  ],\n  parentInjector\n).get(HttpClient);\n\n// Request originates without auth headers -> marked cacheable by child TransferCache\nchildClient.get('/api/user/profile').subscribe();\n```\n\n### Patches\n\nThe issue is resolved by updating `@angular/common` to run root interceptors in the terminal request chain so that delegated clients leave inherited root interceptors to the parent chain, preventing duplicate execution and ensuring `HttpTransferCache` evaluates cache eligibility after parent request interceptors run.\n\n* `22.1.1`\n* `21.2.20`\n* `20.3.28`\n\n### Workarounds & Mitigations\n\nFor applications that cannot immediately upgrade to a patched version, use one of the following mitigations:\n\n1. **Attach Credentials Before or Within the Child Client:** Ensure authentication headers (e.g., `Authorization`) are attached directly when constructing the request or via an interceptor configured directly on the child `HttpClient`, rather than relying solely on parent interceptors.\n2. **Apply Explicit Cache Filters on the Child Client:** Configure `withHttpTransferCacheOptions` with a filter on the child client that explicitly excludes endpoints returning user-specific or sensitive data:\n   ```ts\n   provideClientHydration(\n     withHttpTransferCacheOptions({\n       filter: (req) => !req.url.includes('/api/private/'),\n     })\n   )\n   ```\n3. **Disable HTTP Transfer Cache for Sensitive Routes:** If specific SSR routes handle user-authenticated data, disable transfer caching for those requests or ensure the SSR response sets `Cache-Control: no-store` / `private` headers at your edge/CDN layer so personalized HTML is never shared.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@angular/common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "22.0.0"
      }, {
        "fixed" : "22.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@angular/common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "21.0.0"
      }, {
        "fixed" : "21.2.20"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@angular/common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "20.0.0"
      }, {
        "fixed" : "20.3.28"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@angular/common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "19.2.25"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/security/advisories/GHSA-p297-fm68-3q8c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/issues/69777"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/pull/69778"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/commit/c45028e44f5f3c1e0006eaccf86642deca51b2af"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/commit/caf616670fd20d528aa69e0131cc17d60f0cc27d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/commit/e4c416c20a1cb222ce73d29c035452b257380c56"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/angular/angular"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/releases/tag/v20.3.28"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/releases/tag/v21.2.20"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/releases/tag/v22.1.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-524" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-10T20:19:19Z",
    "nvd_published_at" : null
  }
}