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 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.
CVE-2026-44311
This medium-severity CVE scores 6.1 under NVD CVSS v3. EPSS exploit probability: 0.2%, top 91% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 6.1
- EG Score
- 6.1(medium)
- EPSS
- 9.3%
- KEV
- Not listed
Published
June 12, 2026
Last Modified
June 26, 2026
Advisory Details (2)
Auto-updated Jun 23, 2026Version 7.4.0
Patch available: fabricjs/fabric.js v740
https://github.com/fabricjs/fabric.js/releases/tag/v740Improper escaping in fabric.Gradient colorStops leads to XSS in SVG serialization · Advisory · fabricjs/fabric.js · GitHub
https://github.com/fabricjs/fabric.js/security/advisories/GHSA-w22m-hvvm-xmwxVendor Advisories for CVE-2026-44311(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
npm(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| fabric | — | 7.4.0 | — |
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 13× in last 7d / 44× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-07 01:00 UTCEG score recompute
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 14:28 UTCEG score recompute
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 15:51 UTCEG score recompute
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-03 17:11 UTCEG score recompute
- 2026-07-02 18:35 UTCEG score recompute
- 2026-07-01 19:58 UTCEG score recompute
- 2026-07-01 15:07 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-30 21:22 UTCEG score recompute
- 2026-06-29 22:34 UTCEG score recompute
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-28 23:59 UTCEG score recompute
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 01:23 UTCEG score recompute
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-27 02:47 UTCEG score recompute▲ 0.70
- 2026-06-26 21:42 UTCNVD updateCVSS v3 → 6.1
- 2026-06-26 04:08 UTCEG score recompute
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
Show 19 moreShow fewer
- 2026-06-25 05:32 UTCEG score recompute
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-24 06:48 UTCEG score recompute
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 07:39 UTCEG score recompute
- 2026-06-22 08:17 UTCEG score recompute
- 2026-06-21 09:13 UTCEG score recompute
- 2026-06-20 10:09 UTCEG score recompute
- 2026-06-19 11:31 UTCEG score recompute
- 2026-06-18 12:52 UTCEG score recompute
- 2026-06-17 14:12 UTCEG score recompute
- 2026-06-16 15:36 UTCEG score recompute
- 2026-06-15 17:01 UTCEG score recompute
- 2026-06-14 23:18 UTCEPSS rescore
- 2026-06-14 18:24 UTCEG score recompute
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-13 19:47 UTCEG score recompute
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 21:11 UTCEG score recompute
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-44311?
When was CVE-2026-44311 disclosed?
Is CVE-2026-44311 actively exploited?
What is the CVSS score of CVE-2026-44311?
How do I remediate CVE-2026-44311?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-44311
Is Your Infrastructure Affected by CVE-2026-44311?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.