Intel

AIKIDO-2026-10988

@angular/core is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)GHSA-692r-grfm-v8x7 Published 4 days ago

53

Medium Risk

This Affects:

JS@angular/core
19.0.0 - 19.2.22
Fixed in 19.2.23
20.0.0 - 20.3.21
Fixed in 20.3.22
21.0.0 - 21.2.14
Fixed in 21.2.15
Are you affected? Scan for Free

TL;DR

Angular's DOM security schema and template compiler fail to sanitize several SVG, namespace, and i18n attribute bindings before the patched releases. Dynamic href and xlink:href values on SVG link elements, namespaced SVG script markup, and custom-namespaced HTML tags can bypass URL sanitization when bound to untrusted input. Prior versions also allow dynamically mounting components onto script hosts. The patch aligns compiler and runtime schemas, strips dangerous SVG script markup at compile time, sanitizes SVG link URLs, normalizes namespace lookups, and rejects script component hosts.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@angular/core is vulnerable to Cross-Site Scripting (XSS) in versions 21.0.0 - 21.2.14, 20.0.0 - 20.3.21 and 19.0.0 - 19.2.22.

How to fix this

Upgrade the @angular/core and/or the @angular/compiler library to the patch version.