CVE-2026-144577: fabricjs fabric.js · Cross-site Scripting
Affects fabricjs fabric.jsSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium.
Data as of 4 Dec 2026, 02:18 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 5.3 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 6.1 |
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 4 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| fabricjsfabric.js | Affected
| Fixed in– |
npmfabric.jspkg:npm/fabric.jsOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Users should monitor the vendor's advisory for updates. Until a fix is available, avoid processing or rendering untrusted SVG content generated by fabric.js versions up to 7.4.0. Implement input validation or sanitization on canvas JSON inputs if feasible.
Description
Fabric.js versions up to 7.4.0 contain a cross-site scripting (XSS) vulnerability. This flaw allows attackers to inject malicious markup into exported SVG files by crafting canvas JSON with string width and height values. The vulnerability arises because the toSVG() function does not properly escape these attributes, enabling injection of onload handlers or script elements that execute when the SVG is viewed.