Skip to content
OpenAdvisories

Description

Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to versions 19.2.18, 20.3.16, 21.0.7, and 21.1.0-rc.0, a cross-site scripting (XSS) vulnerability has been identified in the Angular Template Compiler. The vulnerability exists because Angular’s internal sanitization schema fails to recognize the href and xlink:href attributes of SVG <script> elements as a Resource URL context. This issue has been patched in versions 19.2.18, 20.3.16, 21.0.7, and 21.1.0-rc.0.

Affected products

VendorProductAffectedFixed
angular angular >= 21.1.0-next.0, < 21.1.0-rc.0, >= 21.0.0-next.0, < 21.0.7, >= 20.0.0-next.0, < 20.3.16, < 19.2.18 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 angular.js No fix yet —
Ubuntu 26.04 LTS angular.js No fix yet —
Ubuntu 25.10 angular.js No fix yet —
Ubuntu 24.04 LTS angular.js No fix yet —
Ubuntu 22.04 LTS angular.js No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS angular.js No fix yet —
Ubuntu Pro 18.04 LTS angular.js No fix yet —
Ubuntu Pro 16.04 LTS angular.js No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling katib-earlystopping +8 0.19.0-r31 —
Wolfi rolling katib-suggestion-goptuna-compat 0.19.0-r40 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm @angular/compiler >= 21.1.0-next.0, < 21.1.0-rc.0 21.1.0-rc.0 GHSA-jrmj-c5cx-3cw6
npm @angular/compiler >= 21.0.0-next.0, < 21.0.7 21.0.7 GHSA-jrmj-c5cx-3cw6
npm @angular/compiler >= 20.0.0-next.0, < 20.3.16 20.3.16 GHSA-jrmj-c5cx-3cw6
npm @angular/compiler >= 19.0.0-next.0, < 19.2.18 19.2.18 GHSA-jrmj-c5cx-3cw6
npm @angular/compiler <= 18.2.14 — GHSA-jrmj-c5cx-3cw6
npm @angular/core >= 21.1.0-next.0, < 21.1.0-rc.0 21.1.0-rc.0 GHSA-jrmj-c5cx-3cw6
npm @angular/core >= 21.0.0-next.0, < 21.0.7 21.0.7 GHSA-jrmj-c5cx-3cw6
npm @angular/core >= 20.0.0-next.0, < 20.3.16 20.3.16 GHSA-jrmj-c5cx-3cw6
npm @angular/core >= 19.0.0-next.0, < 19.2.18 19.2.18 GHSA-jrmj-c5cx-3cw6
npm @angular/core <= 18.2.14 — GHSA-jrmj-c5cx-3cw6

Advisories 7

References