Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-jhpw-976m-542j

Опубликовано: 03 авг. 2026
Источник: github
Github: Прошло ревью
CVSS4: 8.8

Описание

Angular: Cache-Key Ambiguity in HttpTransferCache Leading to Cross-Request Response Reuse and State Poisoning

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() ) ] };

Пакеты

Наименование

@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

Отсутствует

EPSS

Процентиль: 9%
0.00193
Низкий

8.8 High

CVSS4

Дефекты

CWE-345

Связанные уязвимости

CVSS3: 8.2
redhat
3 дня назад

A flaw was found in Angular's HttpTransferCache component. This component, used for caching HTTP requests during server-side rendering, incorrectly generates cache keys when repeated request parameters are present, causing semantically different requests to share the same cache key. This cache-key ambiguity can lead to cross-request response reuse and state poisoning, where a security-sensitive request might receive an incorrect or attacker-influenced cached response. This could result in an application displaying wrong information or operating with corrupted data, potentially leading to information disclosure.

nvd
3 дня назад

Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 20.3.27, 21.2.19, and 22.0.2, HttpTransferCache comma-joins repeated request parameters, allowing semantically distinct HttpClient requests to use the same transfer-cache key and reuse a wrong backend response. This issue is fixed in versions 20.3.27, 21.2.19, and 22.0.2.

debian
3 дня назад

Angular is a development platform for building mobile and desktop web ...

EPSS

Процентиль: 9%
0.00193
Низкий

8.8 High

CVSS4

Дефекты

CWE-345