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

Published Jun 15, 2026
·
Updated

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

Impact

This vulnerability allows an attacker to perform same-origin Cross-Site Scripting (XSS) attacks against any user visiting an SSR-rendered page that binds user-controlled data inside a <noscript> element. This can lead to session hijacking, credentials theft, unauthorized actions on behalf of users, and defacement.

Patched Versions

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

Workarounds

If you cannot immediately update your dependencies, you can:

- Avoid binding user-controlled values inside <noscript> elements. - Sanitize any user input placed inside <noscript> to explicitly strip closing </noscript> tags before passing it to the template.

Other sources

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.

MITRE

Affected Software

24 affected componentsFixes available
npm/@angular/platform-server<=18.2.14
npm/@angular/platform-server>=19.0.0-next.0<19.2.25
19.2.25
npm/@angular/platform-server>=20.0.0-next.0<20.3.24
20.3.24
npm/@angular/platform-server>=21.0.0-next.0<21.2.16
21.2.16
npm/@angular/platform-server>=22.0.0-next.0<22.0.0-rc.2
22.0.0-rc.2
angular Angular Node.js<=18.2.14
angular Angular Node.js>=19.0.0<19.2.25
angular Angular Node.js>=20.0.0<20.3.24
angular Angular Node.js>=21.0.0<21.2.16
angular Angular Node.js=22.0.0-next0
angular Angular Node.js=22.0.0-next1
angular Angular Node.js=22.0.0-next10
angular Angular Node.js=22.0.0-next11
angular Angular Node.js=22.0.0-next12
angular Angular Node.js=22.0.0-next2
angular Angular Node.js=22.0.0-next3
angular Angular Node.js=22.0.0-next4
angular Angular Node.js=22.0.0-next5
angular Angular Node.js=22.0.0-next6
angular Angular Node.js=22.0.0-next7
angular Angular Node.js=22.0.0-next8
angular Angular Node.js=22.0.0-next9
angular Angular Node.js=22.0.0-rc0
angular Angular Node.js=22.0.0-rc1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@angular/platform-server to a version that resolves this vulnerability.

    Fixed in 19.2.25
  2. Upgrade

    Upgrade npm/@angular/platform-server to a version that resolves this vulnerability.

    Fixed in 20.3.24
  3. Upgrade

    Upgrade npm/@angular/platform-server to a version that resolves this vulnerability.

    Fixed in 21.2.16
  4. Upgrade

    Upgrade npm/@angular/platform-server to a version that resolves this vulnerability.

    Fixed in 22.0.0-rc.2
  5. Upgrade

    Upgrade @angular/platform-server to a version that resolves this vulnerability.

    Fixed in 19.2.25
  6. Upgrade

    Upgrade @angular/platform-server to a version that resolves this vulnerability.

    Fixed in 20.3.24
  7. Upgrade

    Upgrade @angular/platform-server to a version that resolves this vulnerability.

    Fixed in 21.2.16
  8. Upgrade

    Upgrade @angular/platform-server to a version that resolves this vulnerability.

    Fixed in 22.0.0-rc.2
  9. Configuration

    If you cannot update, avoid binding user-controlled values inside `<noscript>` elements; additionally sanitize any user input placed inside `<noscript>` to explicitly strip closing `</noscript>` tags before passing it to the template.

    SSR DOM emulation (domino) used by @angular/platform-server noscript raw-text serialization escaping = Ensure <noscript> content properly escapes raw-text closing tag sequence

Event History

Jun 15, 2026
Advisory Published
via GitHub·05:21 PM
Data Sourced
via GitHub·05:21 PM
DescriptionWeaknessAffected Software
Jun 22, 2026
CVE Published
via MITRE·03:38 PM
Data Sourced
via MITRE·03:38 PM
DescriptionWeakness
Data Sourced
via Red Hat·06:02 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-50556?

CVE-2026-50556 has a high severity rating of 8.6 according to the CVSS score.

2

How do I fix CVE-2026-50556?

To fix CVE-2026-50556, ensure you're using an updated version of the Angular platform that addresses the XSS vulnerability.

3

What type of vulnerability is CVE-2026-50556?

CVE-2026-50556 is classified as a Cross-Site Scripting (XSS) vulnerability.

4

Which Angular software is affected by CVE-2026-50556?

CVE-2026-50556 affects the @angular/platform-server package and its DOM emulation dependency, domino.

5

What causes the vulnerability in CVE-2026-50556?

The vulnerability in CVE-2026-50556 arises from missing raw-text serialization escaping of dynamic content within `<noscript>` elements.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203