{"cve":"CVE-2026-54267","nvd":{"published":"2026-06-22T16:16:39.457","modified":"2026-07-09T15:39:24.360","status":"Analyzed","description":"Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 22.0.1, 21.2.17, and 20.3.25, to optimize client-side bootstrap in Server-Side Rendered (SSR) environments, Angular supports Hydration via provideClientHydration(). During SSR, Angular serializes the application's runtime state (such as cached HttpClient responses) and outputs it into the HTML stream as a <script> tag with a predictable identifier. During client bootstrap, Angular recovers this state by looking up the element via document.getElementById('ng-state') and parsing its text content. Because the DOM element lookup for the state container is predictable and relies solely on the ID selector (ng-state), it is susceptible to DOM Clobbering. If the application binds untrusted user input or CMS content to element properties such as id (e.g., <div [id]=\"userInput\"> or <a id=\"ng-state\">) before the genuine <script> tag is parsed by the browser, the attacker-controlled element takes precedence in the DOM lookup. During hydration, when Angular calls document.getElementById('ng-state'), the browser returns the attacker's clobbered element. Angular then attempts to parse the text content or attributes of this clobbered element as JSON. This vulnerability is fixed in 22.0.1, 21.2.17, and 20.3.25.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.6},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79","CWE-471"],"references":["https://github.com/angular/angular/commit/6bde84fa8e6a5770b54040fbbc9bf10d5d0386fa","https://github.com/angular/angular/pull/69064","https://github.com/angular/angular/security/advisories/GHSA-rgjc-h3x7-9mwg"],"products":["angular:angular"],"source":"nvd","synced_at":"2026-10-19T22:39:28.638635428+00:00"},"epss":{"cve":"CVE-2026-54267","score":0.00379,"percentile":0.31909,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-rgjc-h3x7-9mwg","url":"https://osv.dev/vulnerability/GHSA-rgjc-h3x7-9mwg","summary":"Angular Client Hydration DOM Clobbering & Response-Cache Poisoning","modified":"2026-09-10T03:50:50.394914511Z","packages":[{"ecosystem":"npm","name":"@angular/core","purl":"pkg:npm/%40angular/core","ranges":[">=22.0.0-next.0 <22.0.1"],"fixed":["22.0.1"]},{"ecosystem":"npm","name":"@angular/core","purl":"pkg:npm/%40angular/core","ranges":[">=21.0.0-next.0 <21.2.17"],"fixed":["21.2.17"]},{"ecosystem":"npm","name":"@angular/core","purl":"pkg:npm/%40angular/core","ranges":[">=20.0.0-next.0 <20.3.25"],"fixed":["20.3.25"]},{"ecosystem":"npm","name":"@angular/core","purl":"pkg:npm/%40angular/core","ranges":["<=19.2.25"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}