freenode

← CVE tracker

CVE-2026-144577

Fabric.js through 7.4.0 XSS in SVG Export via loadFromJSON Canvas Dimensions

Severity
medium CVSS 5.3 (v4.0)
Affects
fabric.js · fabricjs
Weakness
CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
4 December 2026 by VulnCheck
Fabric.js through 7.4.0 contains a cross-site scripting vulnerability that allows attackers to inject markup into exported SVG by supplying crafted canvas JSON with string width and height values. Attackers can close the unescaped width, height, or viewBox attributes written by toSVG() and inject onload handlers or script elements that execute when users view the SVG.

Our coverage

We have not written about this one. Know why it matters? Send a tip.