CVE-2026-144577

Fabric.js through 7.4.0 XSS in SVG Export via loadFromJSON Canvas Dimensions

Published Dec 4, 2026 CVSS 4.0 · 5.3 Medium EPSS n/a KEV · Not listed
Description
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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.
Title Fabric.js through 7.4.0 XSS in SVG Export via loadFromJSON Canvas Dimensions
First Time appeared Fabricjs
Fabricjs fabric.js
Weaknesses CWE-79
CPEs cpe:2.3:a:fabricjs:fabric.js:*:*:*:*:*:*:*:*
Vendors & Products Fabricjs
Fabricjs fabric.js
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.3, 'vector': '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'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Dec 4, 2026, 1:09 AM
Reserved
Dec 4, 2026, 12:31 AM
Status
Received
Published
Dec 4, 2026, 2:17 AM
Modified
Dec 4, 2026, 2:17 AM