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
- Angular vulnerable to Cross-site Scripting - CVE-2020-7676
- AngularJS allows attackers to bypass common image source restrictions (GHSA-mqm9-c95h-x2p6) - CVE-2024-8373
- AngularJS allows attackers to bypass common image source restrictions - CVE-2024-8372
- angular vulnerable to super-linear runtime due to backtracking - CVE-2024-21490
- Tags:
- npm
- angular
Anything's wrong? Let us know Last updated on January 27, 2023