{"id":"CVE-2026-50556","aliases":["CVE-2026-50556","GHSA-gxx4-3xcv-f8qx"],"related":[],"kind":"vulnerability","state":"published","title":"Angular: Missing `<noscript>` Raw-Text Serialization Escaping leads to Cross-Site Scripting (XSS) in Angular SSR","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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 <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.","source":"cvelist"},{"lang":"en","text":"A Cross-Site Scripting (XSS) vulnerability exists in `@angular/platform-server`'s DOM emulation dependency (`domino`) when serializing the content of `<noscript>` elements.\n\nWhen 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.\n\nHowever, `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**.\n\nThe 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).\n\n### Impact\n\nThis 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.\n\n### Patched Versions\n\n- 22.0.0-rc.2\n- 21.2.16\n- 20.3.24\n- 19.2.25\n\n### Workarounds\n\nIf you cannot immediately update your dependencies, you can:\n\n- Avoid binding user-controlled values inside `<noscript>` elements.\n- Sanitize any user input placed inside `<noscript>` to explicitly strip closing `</noscript>` tags before passing it to the template.","format":"markdown","source":"ghsa"}],"published":"2026-06-15T17:21:03.000Z","modified":"2026-09-10T03:51:08.774Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":8.6,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 22.0.0-next.0, < 22.0.0-rc.2","status":"affected"},{"version":">= 21.0.0-next.0, < 21.2.16","status":"affected"},{"version":">= 20.0.0-next.0, < 20.3.24","status":"affected"},{"version":">= 19.0.0-next.0, < 19.2.25","status":"affected"},{"version":"<= 18.2.14","status":"affected"}],"vendor":"angular","product":"angular","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"dotnet5.0-build-reference-packages","cpe":"cpe:/o:redhat:enterprise_linux:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Fuse 7","package":"platform-server","cpe":"cpe:/a:redhat:jboss_fuse:7","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"22.0.0-next.0","status":"affected","fixed":"22.0.0-rc.2"}],"ecosystem":"npm","package":"@angular/platform-server","purl":"pkg:npm/%40angular/platform-server","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"21.0.0-next.0","status":"affected","fixed":"21.2.16"}],"ecosystem":"npm","package":"@angular/platform-server","purl":"pkg:npm/%40angular/platform-server","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"20.0.0-next.0","status":"affected","fixed":"20.3.24"}],"ecosystem":"npm","package":"@angular/platform-server","purl":"pkg:npm/%40angular/platform-server","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"19.0.0-next.0","status":"affected","fixed":"19.2.25"}],"ecosystem":"npm","package":"@angular/platform-server","purl":"pkg:npm/%40angular/platform-server","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"18.2.14"}],"ecosystem":"npm","package":"@angular/platform-server","purl":"pkg:npm/%40angular/platform-server","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"18.2.14"},{"status":"affected","introduced":"19.0.0","fixed":"19.2.25"},{"status":"affected","introduced":"20.0.0","fixed":"20.3.24"},{"status":"affected","introduced":"21.0.0","fixed":"21.2.16"},{"status":"affected","version":"22.0.0"},{"status":"affected","version":"22.0.0"},{"status":"affected","version":"22.0.0"},{"status":"affected","version":"22.0.0"},{"status":"affected","version":"22.0.0"},{"status":"affected","version":"22.0.0"},{"status":"affected","version":"22.0.0"},{"status":"affected","version":"22.0.0"},{"status":"affected","version":"22.0.0"},{"status":"affected","version":"22.0.0"},{"status":"affected","version":"22.0.0"},{"status":"affected","version":"22.0.0"},{"status":"affected","version":"22.0.0"},{"status":"affected","version":"22.0.0"},{"status":"affected","version":"22.0.0"}],"vendor":"angular","product":"angular","cpe":"cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/angular/angular/security/advisories/GHSA-gxx4-3xcv-f8qx","tags":["third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/angular/angular/issues/68903","tags":["issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/angular/domino/pull/29","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-50556","tags":["third-party-advisory","vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2491459","tags":["issue-tracking","third-party-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-50556.json","tags":["third-party-advisory","x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://github.com/angular/angular","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-06-22T21:14:35.418Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-50556","url":"https://www.cve.org/CVERecord?id=CVE-2026-50556","licence":"CVE Terms of Use","modified":"2026-07-15T00:46:49.620Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gxx4-3xcv-f8qx","url":"https://github.com/advisories/GHSA-gxx4-3xcv-f8qx","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:08.774Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-50556","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50556","licence":"Public domain","modified":"2026-07-15T01:16:19.880Z"}],"updatedAt":"2026-11-25T22:59:25.388Z","epss":{"score":0.00236,"percentile":0.1557,"date":"2026-12-01T12:00:22.000Z"}}