GHSA-w22m-hvvm-xmwx · Severity: medium · Ecosystem: npm — Fabric.js improper escaping in fabric.Gradient colorStops leads to XSS in SVG serialization
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.
Conclusion & alert: CVE-2026-44311 is rated Exploit Available (50/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.19%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-23 | 0.04% | 0.19% | +0.15% |
| 2 | 2026-06-12 | — | 0.04% | — |
Full EPSS history (2 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 5.4 | 3.1 | MEDIUM |
|
2.8 | 2.5 | [email protected] |
| 6.1 | 3.1 | MEDIUM |
|
2.8 | 2.7 | [email protected] |
GHSA-w22m-hvvm-xmwx · Severity: medium · Ecosystem: npm — Fabric.js improper escaping in fabric.Gradient colorStops leads to XSS in SVG serialization
| URL | Tags |
|---|---|
| https://github.com/fabricjs/fabric.js/releases/tag/v740 | Product Release Notes |
| https://github.com/fabricjs/fabric.js/security/advisories/GHSA-w22m-hvvm-xmwx | Exploit Mitigation Vendor Advisory |