Vulnerability library
Security checkNovember 08, 2023

external-svg-loader Cross-site Scripting vulnerability

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

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

According to the docs, svg-loader will strip all JS code before injecting the SVG file for security reasons but the input sanitization logic is not sufficient and can be trivially bypassed. This allows an attacker to craft a malicious SVG which can result in XSS.

Recommendation

Update the external-svg-loader package to the latest compatible version. Followings are version details:

  • Affected version(s): < 1.6.9
  • Patched version(s): 1.6.9

References

Could your website be exposed too?

SmartScanner can check your website for external-svg-loader Cross-site Scripting vulnerability and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated November 08, 2023