Skyzerozx

#6762of 55,133
41.6Total CVSS
Vulnerabilities · 6
Medium
4
High
2
PT-2026-49247
8.6
2026-06-15
Google · Angular · CVE-2026-54267
**Name of the Vulnerable Software and Affected Versions** Angular versions prior to 22.0.1 Angular versions prior to 21.2.17 Angular versions prior to 20.3.25 **Description** Angular supports Hydration via `provideClientHydration()` to optimize client-side bootstrap in Server-Side Rendered (SSR) environments. During SSR, the application's runtime state, such as cached `HttpClient` responses, is serialized and output as a `<script>` tag with the predictable identifier `ng-state`. During client bootstrap, Angular recovers this state using `document.getElementById('ng-state')` and parses the content as JSON. This process is susceptible to DOM Clobbering, a technique where an attacker injects an element with a specific ID to override a legitimate DOM element. If an application binds untrusted user input or CMS content to element properties like `id` before the genuine script tag is parsed, the attacker-controlled element takes precedence. This allows an attacker to inject a custom JSON payload into the `TransferState` cache, specifically poisoning the HTTP Transfer Cache. Consequently, `HttpClient` may return a forged response instead of requesting the genuine backend API, potentially leading to DOM-based Cross-Site Scripting (XSS), privilege escalation by spoofing user info, or UI hijacking. **Recommendations** Update to version 22.0.1. Update to version 21.2.17. Update to version 20.3.25. Avoid binding raw user-supplied values or dynamic CMS IDs directly to element attributes; sanitize them or prepend a static safe prefix. Configure a unique, non-predictable `APP ID` in the application configuration to change the state element lookup ID from `ng-state` to a custom value.
PT-2026-49563
6.1
2026-06-15
Google · @Angular/Service-Worker · CVE-2026-50184
**Name of the Vulnerable Software and Affected Versions** @angular/service-worker versions prior to 19.2.23 @angular/service-worker versions prior to 20.3.22 @angular/service-worker versions prior to 21.2.15 @angular/service-worker versions prior to 22.0.0-rc.2 **Description** An issue in the `@angular/service-worker` package compromises request-policy enforcement during request reconstruction. When the service worker intercepts network requests for matched assets, an internal helper function strips explicit client-defined safety parameters, specifically the `credentials` configuration (e.g., `credentials: 'omit'`) and the HTTP `cache` mode configuration (e.g., `cache: 'no-store'`). These are reverted to browser-default parameters, such as `credentials: 'same-origin'`. This behavior causes the browser to include active credentials, like cookies or Authorization headers, in outbound requests where they were explicitly intended to be omitted, potentially leading to session leaks. Furthermore, private or non-cacheable resources may be cached by the service worker engine, allowing private page states to persist in the local cache after a user logs out. **Recommendations** Update to version 19.2.23 or later. Update to version 20.3.22 or later. Update to version 21.2.15 or later. Update to version 22.0.0-rc.2 or later. Apply strict flags to session cookies (`SameSite=Strict; Secure; HttpOnly`) and ensure complete route isolation for credential-guarded secure resources. Exclude patterns targeting dynamic, secure endpoints from automatic asset groups or caching scopes in the `ngsw-config.json` file. Programmatically purge the browser's Cache Storage API entries registered by the Angular Service Worker upon user logout.