Skip to main content
VulnerabilityPublished

CVE-2026-144577: fabricjs fabric.js · Cross-site Scripting

Affects fabricjs fabric.jsSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.3 Medium.

Data as of 4 Dec 2026, 02:18 UTC

CVSS 4.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 4.05.3
CNA (VulnCheck)CVSS 3.16.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
fabricjsfabric.jsAffected
  • <=7.4.0
Fixed in–
npmfabric.jspkg:npm/fabric.jsOther threatsAffected
  • <=7.4.0
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.

References

Community reviews

Loading reviews…