Description
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 22.0.0-next.3, 21.2.4, 20.3.18, and 19.2.20, a Cross-Site Scripting (XSS) vulnerability has been identified in the Angular runtime and compiler. It occurs when the application uses a security-sensitive attribute (for example href on an anchor tag) together with Angular's ability to internationalize attributes. Enabling internationalization for the sensitive attribute by adding i18n-<attribute> name bypasses Angular's built-in sanitization mechanism, which when combined with a data binding to untrusted user-generated data can allow an attacker to inject a malicious script. This vulnerability is fixed in 22.0.0-next.3, 21.2.4, 20.3.18, and 19.2.20.
CVSS breakdown
Affected products
- angular / compiler>= 22.0.0-next.0, < 22.0.0-next.3 – >= 22.0.0-next.0, < 22.0.0-next.3
- angular / compiler>= 21.0.0-next.0, < 21.2.4 – >= 21.0.0-next.0, < 21.2.4
- angular / compiler>= 20.0.0-next.0, < 20.3.18 – >= 20.0.0-next.0, < 20.3.18
- angular / compiler>= 17.0.0.next.0, < 19.2.20 – >= 17.0.0.next.0, < 19.2.20
- angular / core>= 22.0.0-next.0, < 22.0.0-next.3 – >= 22.0.0-next.0, < 22.0.0-next.3
- angular / core>= 21.0.0-next.0, < 21.2.4 – >= 21.0.0-next.0, < 21.2.4
- angular / core>= 20.0.0-next.0, < 20.3.18 – >= 20.0.0-next.0, < 20.3.18
- angular / core>= 17.0.0.next.0, < 19.2.20 – >= 17.0.0.next.0, < 19.2.20