CVE-2026-88060: Angular: SSR XSS via Unescaped <template> Content Across DocumentFragment Boundaries in Fallback Raw-Content Elements
An XSS vulnerability exists in @angular/platform-server during server-side rendering (SSR) HTML serialization when traversing ancestor tags across <template> element boundaries. When an application renders untrusted user input within raw-text tags (<xmp>, <style>, <script>), comments, or text nodes inside a <template> that is nested within a fallback raw-content element (<noscript>, <iframe>, <noembed>, <noframes>), matching closing tags (e.g., </noscript>) are not escaped during HTML serialization. When rendered in a browser, this unescaped closing tag prematurely terminates the fallback container and executes trailing markup as active DOM elements.
References
- github.com/advisories/GHSA-v3p8-whq6-r5jg
- github.com/angular/angular/commit/73d8bbd27cb46495426d4132975a1355b47ad915
- github.com/angular/angular/commit/89b20568dfaee1ec8e0b3bcf1872acdddd2f4fef
- github.com/angular/angular/commit/ba3bc47b20b3d12f5eb141ec9c651373ae4d15e8
- github.com/angular/angular/releases/tag/v20.3.30
- github.com/angular/angular/releases/tag/v21.2.22
- github.com/angular/angular/releases/tag/v22.1.4
- github.com/angular/angular/security/advisories/GHSA-v3p8-whq6-r5jg
- github.com/angular/domino/commit/04f987dc08ff3736b427f50941adf1722458528f
- nvd.nist.gov/vuln/detail/CVE-2026-88060
Code Behaviors & Features
Detect and mitigate CVE-2026-88060 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →