Angular has XSS Vulnerability via Unsanitized SVG Script Attributes
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 21.1.0-rc.0, 21.0.7, 20.3.16, 19.2.18
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 1 proof of concept on GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- angular angular
From 21.1.0-next.0 · fixed in 21.1.0-rc.0; From 21.0.0-next.0 · fixed in 21.0.7; From 20.0.0-next.0 · fixed in 20.3.16; fixed in 19.2.18
- @angular/compilernpm
From 21.1.0-next.0 · fixed in 21.1.0-rc.0
- @angular/corenpm
From 21.1.0-next.0 · fixed in 21.1.0-rc.0
- @angular/compilernpm
From 21.0.0-next.0 · fixed in 21.0.7
- @angular/corenpm
From 21.0.0-next.0 · fixed in 21.0.7
- @angular/compilernpm
From 20.0.0-next.0 · fixed in 20.3.16
- @angular/corenpm
From 20.0.0-next.0 · fixed in 20.3.16
- @angular/compilernpm
From 19.0.0-next.0 · fixed in 19.2.18
- @angular/corenpm
From 19.0.0-next.0 · fixed in 19.2.18
- @angular/compilernpm
through 18.2.14
- @angular/corenpm
through 18.2.14