Vulnerabilities/

Fabric.js Affected by Stored XSS via SVG Export

Severity:
High

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:

References

Related Issues

Tags:
npm
fabric
Anything's wrong? Let us know Last updated on February 19, 2026