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 21.0.2, 20.3.15, and 19.2.17, A Stored Cross-Site Scripting (XSS) vulnerability has been identified in the Angular Template Compiler. It occurs because the compiler's internal security schema is incomplete, allowing attackers to bypass Angular's built-in security sanitization. Specifically, the schema fails to classify certain URL-holding attributes (e.g., those that could contain javascript: URLs) as requiring strict URL security, enabling the injection of malicious scripts. This vulnerability is fixed in 21.0.2, 20.3.15, and 19.2.17.

Affected products

VendorProductAffectedFixed
angular angular >= 21.0.0-next.0 < 21.0.2, >= 20.0.0-next.0 < 20.3.15, >= 19.0.0-next.0 < 19.2.17, <= 18.2.14 —

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 —
ReleasePackageFixed inAdvisory
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-apache-cxf +3 3.4.10-4.SP2_redhat_00004.1.el7eap RHSA-2026:33371
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-undertow 2.0.41-8.SP9_redhat_00001.1.el7eap RHSA-2026:33371
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-wildfly +4 7.3.18-3.GA_redhat_00001.1.el7eap RHSA-2026:33371

Wolfi

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

Affected packages

EcosystemPackageAffectedFixedRecord
npm @angular/compiler >= 21.0.0-next.0, < 21.0.2 21.0.2 GHSA-v4hv-rgfq-gp49
npm @angular/compiler >= 20.0.0-next.0, < 20.3.15 20.3.15 GHSA-v4hv-rgfq-gp49
npm @angular/compiler >= 19.0.0-next.0, < 19.2.17 19.2.17 GHSA-v4hv-rgfq-gp49
npm @angular/compiler <= 18.2.14 — GHSA-v4hv-rgfq-gp49

Advisories 8

References