Read the docs
TI-2026-32279 Aliases CVE-2026-44311GHSA-w22m-hvvm-xmwx

Fabric.js: Improper escaping in fabric.Gradient colorStops leads to XSS in SVG serialization

Priority MEDIUM 60CWE-116Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

Fabric.js is a Javascript HTML5 canvas library. Prior to 7.4.0, a potential Cross-Site Scripting (XSS) vulnerability exists in Fabric.js due to improper escaping of user-controlled input during SVG serialization via the toSVG() method. Specifically, the color field within the colorStops array of a fabric.Gradient object is not properly escaped when converted into SVG <stop> elements. If an application renders the generated SVG string into the DOM, this may allow an attacker to inject arbitrary HTML/SVG and execute JavaScript in the victim's browser. This vulnerability is fixed in 7.4.0.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00271 19th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed fabric.js (fabricjs): 7.4.0fabric (npm): 7.4.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
fabricjsfabric.jsbefore 7.4.07.4.0Patch availableCNA
—fabric (npm)before 7.4.07.4.0Patch availableGHSA-w22m-hvvm-xmwx
  • fabric.js Vendorfabricjs Affected before 7.4.0 Fixed in 7.4.0 Patch available CNA
  • fabric (npm) Vendor— Affected before 7.4.0 Fixed in 7.4.0 Patch available GHSA-w22m-hvvm-xmwx

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:fabricjs:fabric.js:*:*:*:*:*:node.js:*:*before 7.4.0Vulnerablefabricjs
  • cpe:2.3:a:fabricjs:fabric.js:*:*:*:*:*:node.js:*:* Versions before 7.4.0 Vulnerable ·fabricjs

Remediation

  • Fix · CNA fabric.js (fabricjs) Fixed in 7.4.0
  • Fix · GHSA-w22m-hvvm-xmwx fabric (npm) Fixed in 7.4.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-44311
  2. 2026-10-03 Alias added: GHSA-w22m-hvvm-xmwx

References

  • TI-2026-21487 Fabric.js Affected by Stored XSS via SVG Export CVSS 3.1HIGH 7.6

Sources