Vulnerability library
Security checkNovember 03, 2025

AngularJS improperly sanitizes SVG elements

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

Low severitynpmangular

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Improper sanitization of the value of the ‘href’ and ‘xlink:href’ attributes in ‘' SVG elements in AngularJS allows attackers to bypass common image source restrictions. This can lead to a form of Content Spoofing https://owasp.

Recommendation

No fix is available yet. Followings are affected versions:

  • <= 1.8.3

References

Could your website be exposed too?

SmartScanner can check your website for AngularJS improperly sanitizes SVG elements and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated November 03, 2025