Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @angular/platform-server
  4. ›
  5. CVE-2026-50556

CVE-2026-50556: @angular/platform-server: Missing `<noscript>` Raw-Text Serialization Escaping leads to Cross-Site Scripting (XSS) in Angular SSR

June 15, 2026

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).

References

  • github.com/advisories/GHSA-gxx4-3xcv-f8qx
  • github.com/angular/angular/issues/68903
  • github.com/angular/angular/security/advisories/GHSA-gxx4-3xcv-f8qx
  • github.com/angular/domino/pull/29
  • nvd.nist.gov/vuln/detail/CVE-2026-50556

Code Behaviors & Features

Detect and mitigate CVE-2026-50556 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 18.2.14, all versions starting from 19.0.0-next.0 before 19.2.25, all versions starting from 20.0.0-next.0 before 20.3.24, all versions starting from 21.0.0-next.0 before 21.2.16, all versions starting from 22.0.0-next.0 before 22.0.0-rc.2

Fixed versions

  • 19.2.25
  • 20.3.24
  • 21.2.16
  • 22.0.0-rc.2

Solution

Upgrade to versions 19.2.25, 20.3.24, 21.2.16, 22.0.0-rc.2 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/@angular/platform-server/CVE-2026-50556.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:05 +0000.