CVE catalog

CVE-2026-50557

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.15, 20.3.22 and 19.2.22, an issue in the

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.34% · Oct 25, 2026

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.15, 20.3.22 and 19.2.22, 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). This vulnerability is fixed in 22.0.0-rc.2, 21.2.15, 20.3.22 and 19.2.22.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianangular.jssid1.8.3-3unknown
Debianangular.jstrixie1.8.3-3unknown
Debianangular.jsbookworm1.8.3-1+deb12u1unknown
Cpeangular.jsNot reportedNot reportedvulnerable
CpeangularNot reportedNot reportedunknown
CpeangularNot reported19.2.22fixed
CpeangularNot reported20.3.22fixed
CpeangularNot reported21.2.15fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianangular.jssourcesid(unfixed)not yet assignedNot reportedNot reported
Debianangular.jssourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debianangular.jssourcebookworm(unfixed)not yet assignedNot reportedNot reported
CpeangularcpeNot reported19.2.22Not reportedNot reportedNot reported
CpeangularcpeNot reported20.3.22Not reportedNot reportedNot reported
CpeangularcpeNot reported21.2.15Not reportedNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libjs-angularjs]Affected

    Source package: [angular.js]

    Details (2)
    • 1.8.3-1+deb12u1 · all · bookworm

      Affected

      nvd · angular.js · debian · bookworm; nvd · angular.js · debian · 12

    • 1.8.3-1+deb12u1 · all · bookworm

      Affected

      nvd · angular.js · debian · bookworm; nvd · angular.js · debian · 12

[Debian 13 (Trixie)]

  • [libjs-angularjs]Affected

    Source package: [angular.js]

    Details (2)
    • 1.8.3-3 · all · trixie

      Affected

      nvd · angular.js · debian · 13

    • 1.8.3-3 · all · trixie

      Affected

      nvd · angular.js · debian · 13

Observed:

References