{"id":"DHI-2w36-tq3b-glr5-b2tu","aliases":[],"title":"An issue in the `@angular/compiler` and `@angular/core` packages allows bypassing element and attribute…","originalDescription":"An issue in the `@angular/compiler` and `@angular/core` packages allows bypassing element and attribute sanitization/validation through specific namespace workarounds. Specifically, namespaced script elements (e.g., `<svg:script>` or `<:svg:script>`) were not properly identified as script elements by the Angular template preparser, allowing them to pass through template compilation without being stripped. Furthermore, security context schema mappings for element attributes did not consistently handle attributes within namespaced elements (like SVG and MathML), opening up gaps where malicious namespaced attributes could bypass runtime and compile-time sanitizers. Combined, these flaws enable an attacker who can inject or supply a template/tag structure with custom namespaces to bypass Angular's script-stripping logic and attribute sanitizers, leading to client-side Cross-Site Scripting (XSS). ### Impact Any Angular application that compiles user-controlled templates at runtime, or relies on sanitization of namespaced elements/attributes, is vulnerable to this security bypass. Once exploited, this allows a malicious actor to inject a namespaced script element or dynamic attribute bin","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://scout.docker.com/v/DHI-2w36-tq3b-glr5-b2tu","type":"advisory"},{"url":"https://github.com/advisories/GHSA-f3m7-gqxr-g87x","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50557","type":"advisory"},{"url":"https://github.com/angular/angular/security/advisories/GHSA-f3m7-gqxr-g87x","type":"advisory"},{"url":"https://github.com/angular/angular/pull/68868","type":"fix"},{"url":"https://github.com/angular/angular/pull/68689","type":"fix"},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-50557","type":"advisory"},{"url":"https://ubuntu.com/security/CVE-2026-50557","type":"advisory"},{"url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-50557","type":"advisory"}],"sources":[{"name":"osv","at":"2026-12-02T16:27:05.030Z","url":"https://osv.dev/vulnerability/DHI-2w36-tq3b-glr5-b2tu","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T01:01:53.064Z"}],"firstSeenAt":"2026-11-20T01:01:53.064Z","publishedAt":"2026-11-20T00:19:15.000Z","modifiedAt":"2026-12-02T16:00:09.783Z"}