{"id":"CVE-2026-50555","published":"2026-06-22T15:37:29Z","modified":"2026-06-22T17:58:33Z","title":"Angular: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in…","vendor":"angular","product":"angular","tier":"tail","description":{"text":"Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 22.0.0-rc.2, 21.2.16, 20.3.24, and 19.2.25, a Cross-Site Scripting (XSS) vulnerability exists in @angular/platform-server's DOM emulation dependency (domino) when serializing the content of raw-text elements (such as <script>, <style>, and <iframe>). domino supports escaping raw-text elements during serialization to prevent closing-tag breakout. However, a Unicode index alignment bug existed in this escaping logic. In JavaScript, string lengths and character indices are calculated based on UTF-16 code units (where astral characters—such as emojis—occupy 2 code units / 4 bytes). If the bound dynamic text contained astral Unicode characters before the closing tag (e.g. </script>, </style>, or </iframe>), the index offset calculation in domino's replacement logic shifted. This misalignment caused domino to fail to replace or escape the closing tag, leaving it raw and unescaped in the output HTML. An attacker who controls the dynamic text can supply a payload containing both an astral Unicode character and a closing tag (e.g., 😀</iframe><script>alert(1)</script>). When serialized on the server during SSR, the browser parses the unescaped closing tag, exits the raw-text context early, and executes the subsequent <script> block, leading to same-origin Cross-Site Scripting (XSS). This vulnerability is fixed in 22.0.0-rc.2, 21.2.16, 20.3.24, and 19.2.25.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00267,"percentile":0.11743,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/angular/angular/security/advisories/GHSA-hqr9-c56f-3x7f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/angular/domino/pull/29","tags":["x_refsource_MISC"]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":2.35},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"angular","affectedVersions":[{"vendor":"angular","product":"angular","versions":[">= 22.0.0-next.0, < 22.0.0-rc.2",">= 21.0.0-next.0, < 21.2.16",">= 20.0.0-next.0, < 20.3.24",">= 19.0.0-next.0, < 19.2.25","<= 18.2.14"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-06-22T17:56:51.469447Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@angular/platform-server","vulnerableRanges":[">=22.0.0-next.0, <22.0.0-rc.2",">=21.0.0-next.0, <21.2.16",">=20.0.0-next.0, <20.3.24",">=19.0.0-next.0, <19.2.25","<=18.2.14"],"patched":["22.0.0-rc.2","21.2.16","20.3.24","19.2.25"],"from":["GHSA-hqr9-c56f-3x7f"],"provenance":"source"}],"summary":{"text":"A flaw in the @angular/platform-server package of the Angular framework, arising from its DOM emulation dependency domino, causes raw-text elements such as script, style and iframe to be serialized without proper escaping when the content contains astral Unicode characters before a closing tag. An attacker who controls the dynamic text bound into the page can exploit this by supplying a payload with an astral character followed by a closing tag and a script block, which, when rendered during server-side rendering, executes same-origin cross-site scripting after user interaction with the page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:08Z"},"euvd":{"id":"EUVD-2026-38289","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-59052","published":"2025-09-10","fixed":"21.0.0-next.3","kev":false},{"cve":"CVE-2026-50168","published":"2026-06-22","fixed":"22.0.0-rc.2","kev":false,"link":{"from":"CVE-2026-50168","to":"CVE-2026-50555","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/platform-server","fromFixed":"21.2.15","toFixed":"21.2.16","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:@angular/platform-server","fromFixed":"20.3.22","toFixed":"20.3.24","daysApart":0}]}},{"cve":"CVE-2026-50555","published":"2026-06-22","fixed":"22.0.0-rc.2","kev":false},{"cve":"CVE-2026-50556","published":"2026-06-22","fixed":"22.0.0-rc.2","kev":false},{"cve":"CVE-2026-46417","published":"2026-06-22","fixed":"22.0.0-next.12","kev":false},{"cve":"CVE-2026-41423","published":"2026-05-08","fixed":"22.0.0-next.8","kev":false},{"cve":"CVE-2026-69149","published":"2026-08-03","fixed":"22.0.7","kev":false,"link":{"from":"CVE-2026-50555","to":"CVE-2026-69149","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/platform-server","fromFixed":"21.2.16","toFixed":"21.2.19","daysApart":42},{"kind":"version-step","provenance":"source","package":"npm:@angular/platform-server","fromFixed":"20.3.24","toFixed":"20.3.27","daysApart":42}]}}],"package":"npm:@angular/platform-server"}}