CVE-2026-68945: Angular Cache-Key Ambiguity Vulnerability

HIGH
Advisory Identifier: GHSA-jhpw-976m-542j
CWE-345
Published
Advisory Summary

CVE-2026-68945 is a HIGH cache-key ambiguity vulnerability (CWE-345: Insufficient Verification of Data Authenticity) affecting Angular libraries in the npm ecosystem. The issue involves cache-key ambiguity in httptransfercache leading to cross-request response reuse and state poisoning. Remediation is available by upgrading affected packages to version 22.0.2, 21.2.19, 20.3.27.

CVE-2026-68945 at a Glance

CVE Identifier CVE-2026-68945
GHSA Identifier GHSA-jhpw-976m-542j
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-345: Insufficient Verification of Data Authenticity
Affected Product Angular
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-68945

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.0.2
npm install @angular/common@22.0.2
@angular/common fixed: 21.2.19
npm install @angular/common@21.2.19
@angular/common fixed: 20.3.27
npm install @angular/common@20.3.27
@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-68945, 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.0.2), 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-345: Insufficient Verification of Data Authenticity, where the product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data. 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

Angular's `HttpTransferCache` caches HTTP requests made during Server-Side Rendering (SSR) so that they can be reused during client-side hydration. During SSR, `HttpTransferCache` previously generated identical key material for distinct request parameters when repeated values were present because repeated values were joined with commas: ```ts new HttpParams().set('role', 'user,admin') new HttpParams().append('role', 'user').append('role', 'admin') ``` Both requests previously serialized as `role=user,admin`, allowing distinct `HttpClient` requests to produce the same transfer-cache key material. ### Impact In an SSR application, this cache-key ambiguity can make a later security-sensitive `HttpClient` request receive the response from an earlier semantically different request in the same render. For example, an attacker-influenced scalar-comma request can be cached and then replayed as the response for a trusted repeated-param authorization or data request to the same URL. As a result, Angular's server-rendered output can be based on the wrong backend response because the trusted request is not dispatched. This can lead to: - **State Poisoning**: Using incorrect or attacker-influenced cached responses for subsequent application logic. - **Cross-Request Response Reuse**: Reusing cached responses across requests with semantically different parameters. ### Patched Versions - 22.0.2 - 21.2.19 - 20.3.27 ### Workarounds If you cannot upgrade immediately, configure your `HttpClient` requests to skip transfer caching for sensitive endpoints where repeated parameter keys are used: ```ts this.http.get('/api/resource', { transferCache: false }); ``` Alternatively, disable the HTTP transfer cache globally in your application bootstrap config: ```ts import { provideClientHydration, withNoHttpTransferCache } from '@angular/platform-browser'; export const appConfig = { providers: [ provideClientHydration( withNoHttpTransferCache() ) ] }; ```

CVE-2026-68945 Affected Angular Versions

4 component(s)
Fixed Versions:
22.0.221.2.1920.3.27
Product / Package Ecosystem Affected Versions Fixed Version
@angular/common
npm
≥ 22.0.0-next.0
< 22.0.2
22.0.2
@angular/common
npm
≥ 21.0.0-next.0
< 21.2.19
21.2.19
@angular/common
npm
≥ 20.0.0-next.0
< 20.3.27
20.3.27
@angular/common
npm
≤ 19.2.25

References

Frequently Asked Questions

What is CVE-2026-68945?
CVE-2026-68945 is a security vulnerability in Angular involving Cache-Key Ambiguity in HttpTransferCache Leading to Cross-Request Response Reuse and State Poisoning under CWE-345: Insufficient Verification of Data Authenticity.
Which Angular versions are affected?
Affected versions include releases prior to 22.0.2, 21.2.19, 20.3.27 across affected packages: @angular/common.
What version fixes CVE-2026-68945?
Upgrading to 22.0.2, 21.2.19, 20.3.27 (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.0.2, 21.2.19, 20.3.27, Latest secure release. Upgrade your dependency to 22.0.2, 21.2.19, 20.3.27, Latest secure release or later.
What CWE is associated with CVE-2026-68945?
CVE-2026-68945 is classified under CWE-345: Insufficient Verification of Data Authenticity (The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.).
How can I check npm dependencies for CVE-2026-68945?
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-jhpw-976m-542j",
  "modified" : "2026-08-03T15:59:13Z",
  "published" : "2026-08-03T15:59:13Z",
  "aliases" : [ "CVE-2026-68945" ],
  "summary" : "Angular: Cache-Key Ambiguity in HttpTransferCache Leading to Cross-Request Response Reuse and State Poisoning",
  "details" : "Angular's `HttpTransferCache` caches HTTP requests made during Server-Side Rendering (SSR) so that they can be reused during client-side hydration.\n\nDuring SSR, `HttpTransferCache` previously generated identical key material for distinct request parameters when repeated values were present because repeated values were joined with commas:\n\n```ts\nnew HttpParams().set('role', 'user,admin')\nnew HttpParams().append('role', 'user').append('role', 'admin')\n```\n\nBoth requests previously serialized as `role=user,admin`, allowing distinct `HttpClient` requests to produce the same transfer-cache key material.\n\n### Impact\n\nIn an SSR application, this cache-key ambiguity can make a later security-sensitive `HttpClient` request receive the response from an earlier semantically different request in the same render. For example, an attacker-influenced scalar-comma request can be cached and then replayed as the response for a trusted repeated-param authorization or data request to the same URL. As a result, Angular's server-rendered output can be based on the wrong backend response because the trusted request is not dispatched. This can lead to:\n\n- **State Poisoning**: Using incorrect or attacker-influenced cached responses for subsequent application logic.\n- **Cross-Request Response Reuse**: Reusing cached responses across requests with semantically different parameters.\n\n### Patched Versions\n\n- 22.0.2\n- 21.2.19\n- 20.3.27\n\n### Workarounds\n\nIf you cannot upgrade immediately, configure your `HttpClient` requests to skip transfer caching for sensitive endpoints where repeated parameter keys are used:\n\n```ts\nthis.http.get('/api/resource', {\n  transferCache: false\n});\n```\n\nAlternatively, disable the HTTP transfer cache globally in your application bootstrap config:\n\n```ts\nimport { provideClientHydration, withNoHttpTransferCache } from '@angular/platform-browser';\n\nexport const appConfig = {\n  providers: [\n    provideClientHydration(\n      withNoHttpTransferCache()\n    )\n  ]\n};\n```",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@angular/common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "22.0.0-next.0"
      }, {
        "fixed" : "22.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@angular/common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "21.0.0-next.0"
      }, {
        "fixed" : "21.2.19"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@angular/common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "20.0.0-next.0"
      }, {
        "fixed" : "20.3.27"
      } ]
    } ]
  }, {
    "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-jhpw-976m-542j"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/pull/68571"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/commit/6867f77ec779a0a24f6339ad6c775f444202103c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/commit/948a8d6831e8920b54663ec79421da95210e0e35"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/commit/a64e2883e9dc4abdac70209129be303de79e5b2b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/angular/angular/commit/a6c7fc5c13e6e494a4c9bd8e773b8d4b2a99b20c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/angular/angular"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-345" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-03T15:59:13Z",
    "nvd_published_at" : null
  }
}