CVE-2026-27013
Fabric.js before 7.2.0 does not escape user strings in SVG export, enabling stored cross site scripting via loadFromJSON.
| Reporter | Title | Published | Views | Family All 20 |
|---|---|---|---|---|
| CVE-2026-27013 | 19 Feb 202619:38 | – | attackerkb | |
| CVE-2026-27013 | 19 Feb 202621:00 | – | circl | |
| Fabric.js security vulnerabilities | 19 Feb 202600:00 | – | cnnvd | |
| CVE-2026-27013 Fabric.js Affected by Stored XSS via SVG Export | 19 Feb 202619:38 | – | cvelist | |
| Fabric.js Affected by Stored XSS via SVG Export | 18 Feb 202622:44 | – | github | |
| CVE-2026-27013 | 19 Feb 202619:38 | – | mend | |
| CVE-2026-27013 | 19 Feb 202620:25 | – | nvd | |
| GHSA-HFVX-25R5-QC3W Fabric.js Affected by Stored XSS via SVG Export | 18 Feb 202622:44 | – | osv_ghsa | |
| PT-2026-20907 | 19 Feb 202600:00 | – | ptsecurity | |
| CVE-2026-27013: Improper Neutralization of Input During Web Page Generation | 19 Feb 202600:00 | – | rapid7 |
[
{
"vendor": "fabricjs",
"product": "fabric.js",
"versions": [
{
"version": "< 7.2.0",
"status": "affected"
}
]
}
]| Parameter | Position | Path | Description | CWE |
|---|---|---|---|---|
| loadFromJSON | request body | / | The `loadFromJSON()` method accepts user-controlled JSON. If this JSON contains unescaped strings that are later exported via `toSVG()`, it can lead to XSS by breaking out of SVG attribute markup. | CWE-116, CWE-79 |
| toSVG | request body | / | The `toSVG()` method exports the canvas content to an SVG string. If the canvas contains objects loaded via `loadFromJSON()` with malicious strings, the exported SVG will contain injected event handlers. | CWE-116, CWE-79 |
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation