AngularJS Cross-site Scripting due to failure to sanitize `xlink.href` attributes
- Severity:
- Medium
Description
Versions of angular prior to 1.5.0-beta.1 are vulnerable to Cross-Site Scripting. The package fails to sanitize xlink:href attributes, which may allow attackers to execute arbitrary JavaScript in a victim’s browser if the value is user-controlled.
Recommendation
Update the angular package to the latest compatible version. Followings are version details:
- Affected version(s): < 1.5.0-beta.1
- Patched version(s): 1.5.0-beta.1
References
- GHSA-r5fx-8r73-v86c
- bugzilla.redhat.com
- snyk.io
- www.npmjs.com
- CVE-2019-14863
- CWE-79
- CAPEC-310
- OWASP 2021-A3
- OWASP 2021-A6
Related Issues
- Cross-site scripting in Swagger-UI - CVE-2019-17495
- Bootstrap Vulnerable to Cross-Site Scripting - CVE-2019-8331
- SQL Injection and Cross-site Scripting in class-validator - CVE-2019-18413
- Cross-site scripting in bootstrap-select - CVE-2019-20921
- Tags:
- npm
- angular
Anything's wrong? Let us know Last updated on January 27, 2023