GHSA-P297-FM68-3Q8C
Vulnerability from github – Published: 2026-09-10 20:19 – Updated: 2026-09-10 20:19A 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, 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:
- During SSR, a child
HttpClientinitiates an unauthenticated request that is subsequently authenticated by a parent interceptor. - The authenticated response body is cached into the SSR-rendered HTML page (
TransferState). - The rendered HTML page is stored by a shared caching layer (e.g., CDN, edge cache, or reverse proxy) or served across user sessions.
- 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
HttpClientwith Delegation: The application configures a childHttpClientusingwithRequestsMadeViaParent(). - Parent-Level Authentication Injection: Authentication credentials (such as
Authorizationheaders, session cookies, or custom API tokens filtered viawithHttpTransferCacheOptions) 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
// 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.121.2.2020.3.28
Workarounds & Mitigations
For applications that cannot immediately upgrade to a patched version, use one of the following mitigations:
- 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 childHttpClient, rather than relying solely on parent interceptors. - Apply Explicit Cache Filters on the Child Client: Configure
withHttpTransferCacheOptionswith 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/'), }) ) - 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/privateheaders at your edge/CDN layer so personalized HTML is never shared.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "@angular/common"
},
"ranges": [
{
"events": [
{
"introduced": "22.0.0"
},
{
"fixed": "22.1.1"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "npm",
"name": "@angular/common"
},
"ranges": [
{
"events": [
{
"introduced": "21.0.0"
},
{
"fixed": "21.2.20"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "npm",
"name": "@angular/common"
},
"ranges": [
{
"events": [
{
"introduced": "20.0.0"
},
{
"fixed": "20.3.28"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "npm",
"name": "@angular/common"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "19.2.25"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-88059"
],
"database_specific": {
"cwe_ids": [
"CWE-200",
"CWE-524"
],
"github_reviewed": true,
"github_reviewed_at": "2026-09-10T20:19:19Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"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 `\u003cscript id=\"ng-state\"\u003e`). 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\u0027s `TransferCache` interceptor evaluates whether the request is eligible for caching **before** delegating to the parent client\u0027s 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\u0027s private data.\n\n### Attack Preconditions \u0026 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) =\u003e 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 -\u003e marked cacheable by child TransferCache\nchildClient.get(\u0027/api/user/profile\u0027).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 \u0026 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) =\u003e !req.url.includes(\u0027/api/private/\u0027),\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.",
"id": "GHSA-p297-fm68-3q8c",
"modified": "2026-09-10T20:19:20Z",
"published": "2026-09-10T20:19:19Z",
"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"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N",
"type": "CVSS_V3"
}
],
"summary": "Angular: Information Leak via `HttpTransferCache` Bypass When Using `withRequestsMadeViaParent`"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.