CVE-2026-144577
MEDIUM 5.3CVSS 4.0Fabric.js through 7.4.0 XSS in SVG Export via loadFromJSON Canvas Dimensions
Fabric.js through 7.4.0 contains a cross-site scripting vulnerability that allows attackers to inject markup into exported SVG by supplying crafted canvas JSON with string width and height values. Attackers can close the unescaped width, height, or viewBox attributes written by toSVG() and inject onload handlers or script elements that execute when users view the SVG.
- Published
- 4 Dec 2026
- Last modified
- 4 Dec 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-79
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | MEDIUM 5.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| CVE List | VulnCheck | CVSS 4.0 | MEDIUM 5.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N |
| NVD | disclosure@vulncheck.com (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| CVE List | VulnCheck | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | fabricjs | fabric.js | <= 7.4.0 |
References
- https://github.com/fabricjs/fabric.js/blob/v740/src/canvas/StaticCanvas.ts#L1251-L1276 · technical-description
- https://github.com/fabricjs/fabric.js/blob/v740/src/canvas/StaticCanvas.ts#L995-L1025 · technical-description
- https://www.vulncheck.com/advisories/fabric-js-through-7.4.0-xss-in-svg-export-via-loadfromjson-canvas-dimensions · third-party-advisory
History
- 4 Dec 2026 17:09 UTC · NVD: status Received → Awaiting Analysis
- 4 Dec 2026 03:56 UTC · NVD: first stored (published 4 Dec 2026)
- 4 Dec 2026 01:56 UTC · CVE List: first stored (published 4 Dec 2026)