Vulnerability library
Security checkFebruary 19, 2026

Fabric.js Affected by Stored XSS via SVG Export

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

High severitynpmfabric

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

fabric.js applies escapeXml() to text content during SVG export (src/shapes/Text/TextSVGExportMixin.ts:186) but fails to apply it to other user-controlled string values that are interpolated into SVG attribute markup.

Recommendation

Update the fabric package to the latest compatible version. Followings are version details:

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

References

Could your website be exposed too?

SmartScanner can check your website for Fabric.js Affected by Stored XSS via SVG Export and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 19, 2026