Live threats

All CVEs / Fabricjs

CVE-2026-44311Fabricjs Fabric.js

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
—
Auth required
No
Published
Jun 22, 2026
Updated
Oct 25, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79, CWE-116
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Fabric.js.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm fabric < 7.4.0 7.4.0 npm install fabric@7.4.0

Per OSV / GitHub Advisories (GHSA-w22m-hvvm-xmwx). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
fabricjsfabric.js< 7.4.0

Official sources

References

Links published by the sources. Open them with care.