CVE-2026-50557
Angular: Template and Attribute Namespace Sanitization Bypass (XSS)
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.411% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:28:52.703Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 5.3 · published by GitHub_MCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T12:58:45.453Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:28:52.703Z | CISA KEV |
| cvss | verified | 2026-11-19T12:58:45.453Z | CVE Program |
| epss | verified | 2026-11-19T16:04:51.854Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:29.390Z | OSV |
| affected | verified | 2026-11-19T12:58:45.453Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:58:45.453Z | CVE Program |
Affected versions and configuration
angular angular; default status: unknown: >= 21.0.0-next.0 < 21.2.15 [affected; scheme: unspecified]; >= 22.0.0-next.0 < 22.0.0-rc.2 [affected; scheme: unspecified]; >= 20.0.0-next.0 < 20.3.22 [affected; scheme: unspecified]; >= 19.0.0-next.0 < 19.2.22 [affected; scheme: unspecified]; <= 18.2.14 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "angular",
"product": "angular",
"versions": [
{
"status": "affected",
"version": ">= 21.0.0-next.0 < 21.2.15"
},
{
"status": "affected",
"version": ">= 22.0.0-next.0 < 22.0.0-rc.2"
},
{
"status": "affected",
"version": ">= 20.0.0-next.0 < 20.3.22"
},
{
"status": "affected",
"version": ">= 19.0.0-next.0 < 19.2.22"
},
{
"status": "affected",
"version": "<= 18.2.14"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-50557",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-06-22T17:51:06.519025Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-06-22T17:54:55.320Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-f3m7-gqxr-g87x",
"aliases": [
"CVE-2026-50557"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "21.0.0-next.0"
},
{
"fixed": "21.2.15"
}
]
}
],
"package": {
"name": "@angular/core",
"purl": "pkg:npm/%40angular/core",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-f3m7-gqxr-g87x/GHSA-f3m7-gqxr-g87x.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "22.0.0-next.0"
},
{
"fixed": "22.0.0-rc.2"
}
]
}
],
"package": {
"name": "@angular/core",
"purl": "pkg:npm/%40angular/core",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-f3m7-gqxr-g87x/GHSA-f3m7-gqxr-g87x.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "20.0.0-next.0"
},
{
"fixed": "20.3.22"
}
]
}
],
"package": {
"name": "@angular/core",
"purl": "pkg:npm/%40angular/core",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-f3m7-gqxr-g87x/GHSA-f3m7-gqxr-g87x.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "19.0.0-next.0"
},
{
"fixed": "19.2.22"
}
]
}
],
"package": {
"name": "@angular/core",
"purl": "pkg:npm/%40angular/core",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-f3m7-gqxr-g87x/GHSA-f3m7-gqxr-g87x.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"last_affected": "18.2.14"
}
]
}
],
"package": {
"name": "@angular/core",
"purl": "pkg:npm/%40angular/core",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-f3m7-gqxr-g87x/GHSA-f3m7-gqxr-g87x.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
},
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/angular/angular/security/advisories/GHSA-f3m7-gqxr-g87x",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-50557",
"type": "ADVISORY"
},
{
"url": "https://github.com/angular/angular/pull/68689",
"type": "WEB"
},
{
"url": "https://github.com/angular/angular/pull/68868",
"type": "WEB"
},
{
"url": "https://github.com/angular/angular",
"type": "PACKAGE"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2026-06-22T16:16:38Z",
"github_reviewed_at": "2026-06-15T17:21:58Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | @angular/core | Not a distribution channel | 21.2.15 | Official record |
| ecosystem-boundary | npm / package | @angular/core | Not a distribution channel | 22.0.0-rc.2 | Official record |
| ecosystem-boundary | npm / package | @angular/core | Not a distribution channel | 20.3.22 | Official record |
| ecosystem-boundary | npm / package | @angular/core | Not a distribution channel | 19.2.22 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:29.390ZArchived source JSON
Source publication: 2026-06-15T17:21:58.000Z
Source modification: 2026-09-10T03:50:49.282ZDocument fingerprint
50ac64eba01ffd544ad15a43741ce9d8e49258acad8b58ab2489b3fcb5715606 - CVE ProgramConsulted: 2026-11-19T12:58:45.453ZArchived source JSON
Source publication: 2026-06-22T15:11:48.347Z
Source modification: 2026-06-22T17:54:55.320ZDocument fingerprint
a47f26847ff59b39d2fda6033893bd94d0cdf81a23d65cde68d78179ca973310 - CISA KEVConsulted: 2026-11-19T17:28:52.703ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:51.854ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
70dc132844bce71c65be43721c4018f559ab88c4e98a9a01125f21b4edae2e75
Official status history
- UNKNOWN → PUBLISHED · · evidence