> CVE-2026-50557 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2026-06-22 16:16
MODIFIED
2026-06-22 16:16
CVSS_SCORE V3
5.3
EPSS (Prob. Exploit)
0.41%
Top 64.6%
DATA SOURCES:
NVD 🔗 2026-06-22 CWE MITRE 🔗 2026-11-01 FIRST EPSS 🔗 2026-11-01 GITHUB 🔗 2026-10-29 OSV 🔗 2026-11-02

> DESCRIPTION

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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

> MÉTRIQUES CVSS DÉTAILLÉES

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
Unknown (P)
Interaction inconnue
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
Low (L)
Divulgation limitée d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
Low
Divulgation limitée d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
None
Aucune interruption de service

> WEAKNESSES

CWE-79

> CWE DETAILED DESCRIPTIONS

CWE-79: Improper Neutralization of Input During Web Page Generation - The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

> GITHUB SECURITY ADVISORY

GHSA-f3m7-gqxr-g87x MODERATE

Angular: Template and Attribute Namespace Sanitization Bypass (XSS)

AFFECTED PACKAGES:
NPM / @angular/compiler
<= 18.2.14
NPM / @angular/compiler
>= 19.0.0-next.0, < 19.2.22
Fixed in: 19.2.22
NPM / @angular/compiler
>= 20.0.0-next.0, < 20.3.22
Fixed in: 20.3.22
NPM / @angular/compiler
>= 22.0.0-next.0, < 22.0.0-rc.2
Fixed in: 22.0.0-rc.2
NPM / @angular/compiler
>= 21.0.0-next.0, < 21.2.15
Fixed in: 21.2.15
NPM / @angular/core
<= 18.2.14
NPM / @angular/core
>= 19.0.0-next.0, < 19.2.22
Fixed in: 19.2.22
NPM / @angular/core
>= 20.0.0-next.0, < 20.3.22
Fixed in: 20.3.22
NPM / @angular/core
>= 22.0.0-next.0, < 22.0.0-rc.2
Fixed in: 22.0.0-rc.2
NPM / @angular/core
>= 21.0.0-next.0, < 21.2.15
Fixed in: 21.2.15

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Angular: Template and Attribute Namespace Sanitization Bypass (XSS)

AFFECTED PACKAGES:
Unknown / Unknown
575 versions affected
ALIASES:
GHSA-f3m7-gqxr-g87x

> HISTORIQUE DES MODIFICATIONS

Première apparition
22/06/2026 16:16
Source: NVD
📊 ENRICHISSEMENT 01/11/2026 06:59
CWE
Champ modifié: Description CWE
Ancienne valeur:
CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') - The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in...
Nouvelle valeur:
CWE-79: Improper Neutralization of Input During Web Page Generation - The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a...
📊 ENRICHISSEMENT 01/07/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') - The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in...
Total des modifications: 2 Dernière mise à jour: 5 days ago

> REFERENCES

https://github.com/angular/angular/pull/68689
https://github.com/angular/angular/pull/68868
https://github.com/angular/angular/security/advisories/GHSA-f3m7-gqxr-g87x
« BACK_TO_HOME