CVE-2026-44311
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.
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
- CWE-116: Improper Encoding or Escaping of Output
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-06-23 |
Timeline
- 2026-06-12GitHub advisory published (GHSA-w22m-hvvm-xmwx)10 days before publication
- 2026-06-22Published by the CNA20:50 UTC
- 2026-06-23CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-w22m-hvvm-xmwx, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm fabric | before 7.4.0 | 7.4.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| fabricjs fabric.js | before 7.4.0fixed in 7.4.0 | 7.4.0 |
References
- https://github.com/fabricjs/fabric.js/security/advisories/GHSA-w22m-hvvm-xmwx
- https://github.com/fabricjs/fabric.js/releases/tag/v740
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-44311'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-44311'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-44311'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-44311'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).