CVE-2026-44311
MEDIUM EPSS 9.3%
Published Jun 22, 20261w ago · Modified Jun 23, 20261w ago
5.4 CVSS 3.1
Published Jun 22, 2026 1w ago
Last Modified Jun 23, 2026 1w ago
Description
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.
CVSS Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction Required
Scope Unchanged
Confidentiality Low
Integrity Low
Availability None
Threat Intelligence
EPSS Exploit Probability
9.3% percentile
Exploit & Patch Status
No Known Exploit
No Patch Available
Weaknesses 2
CWE-116
CWE-79 Cross-site Scripting Injection
References 2
- github.com https://github.com/fabricjs/fabric.js/releases/tag/v740
- github.com https://github.com/fabricjs/fabric.js/security/advisories/GHSA-w22m-hvvm-xmwx
Remediation
No remediation data recorded yet
Check vendor advisories and the NVD entry for patch availability.