Vulnerability library
Security checkJanuary 27, 2023

AngularJS Cross-site Scripting due to failure to sanitize `xlink.href` attributes

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmangular

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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

Could your website be exposed too?

SmartScanner can check your website for AngularJS Cross-site Scripting due to failure to sanitize `xlink.href` attributes and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 27, 2023