CVE-2026-68945
Angular: Cache-Key Ambiguity in HttpTransferCache Leading to Cross-Request Response Reuse and State Poisoning
Description
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:
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:
this.http.get('/api/resource', {
transferCache: false
});
Alternatively, disable the HTTP transfer cache globally in your application bootstrap config:
import { provideClientHydration, withNoHttpTransferCache } from '@angular/platform-browser';
export const appConfig = {
providers: [
provideClientHydration(
withNoHttpTransferCache()
)
]
};
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm.at.angular » commonvia npm @angular/common | <= 19.2.25>= 20.0.0-next.0, < 20.3.27>= 21.0.0-next.0, < 21.2.19>= 22.0.0-next.0, < 22.0.2 | 20.3.27, 21.2.19, 22.0.2 |
| org.webjars.npm » angular__commonvia npm @angular/common | <= 19.2.25>= 20.0.0-next.0, < 20.3.27>= 21.0.0-next.0, < 21.2.19>= 22.0.0-next.0, < 22.0.2 | 20.3.27, 21.2.19, 22.0.2 |
Blast radius
35% of the dependent artifacts (7) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 370 |
| 2 hops | 9 |
| 3 hops | 9 |
Most used dependents
- org.mvnpm.at.angular » platform-browser10 usages
- org.mvnpm.at.angular » forms5 usages
- org.mvnpm.at.angular » router4 usages
- org.mvnpm.at.angular » platform-browser-dynamic3 usages
- org.mvnpm.at.angular » animations2 usages
- org.fujion » fujion-angular-core2 usages
- org.fujion » fujion-angular-example1 usages
- org.fujion » fujion-testharness0 usages
- org.webjars.npm » github-com-ng-bootstrap-ng-bootstrap0 usages
- org.webjars.npm » ng2-datetime0 usages
- org.webjars.npm » ng2-datetime-picker0 usages
- org.webjars.npm » github-com-angular-material20 usages
- org.mvnpm » a2ui0 usages
- org.webjars.npm » angular2-fontawesome0 usages
- org.webjars.npm » github-com-mseemann-angular2-mdl0 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Package | angular/angular | github.com |
| Web | angular/angular advisory GHSA-jhpw-976m-542j | github.com |
| Web | angular/angular pull request #68571 | github.com |
| Web | angular/angular commit 6867f77 | github.com |
| Web | angular/angular commit 948a8d6 | github.com |
| Web | angular/angular commit a64e288 | github.com |
| Web | angular/angular commit a6c7fc5 | github.com |
