Intel

AIKIDO-2026-10988

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

CVE-2026-52725Published May 29, 2026
May 29, 2026

53

CVE Score

Medium

Cross-Site Scripting (XSS)

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.

How do I fix this?

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

Who does this affect?

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

Versions

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

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.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea