{"id":"CVE-2026-27013","published":"2026-02-19T19:38:19Z","modified":"2026-02-19T21:21:59Z","title":"Fabric.js Affected by Stored XSS via SVG Export","vendor":"fabricjs","product":"fabric.js","tier":"tail","description":{"text":"Fabric.js is a Javascript HTML5 canvas library. Prior to version 7.2.0, Fabric.js applies `escapeXml()` to text content during SVG export (`src/shapes/Text/TextSVGExportMixin.ts:186`) but fails to apply it to other user-controlled string values that are interpolated into SVG attribute markup. When attacker-controlled JSON is loaded via `loadFromJSON()` and later exported via `toSVG()`, the unescaped values break out of XML attributes and inject arbitrary SVG elements including event handlers. Any application that accepts user-supplied JSON (via `loadFromJSON()`, collaborative sharing, import features, CMS plugins) and renders the `toSVG()` output in a browser context (SVG preview, export download rendered in-page, email template, embed) is vulnerable to stored XSS. An attacker can execute arbitrary JavaScript in the victim's browser session. Version 7.2.0 contains a fix.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00335,"percentile":0.27597,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/fabricjs/fabric.js/security/advisories/GHSA-hfvx-25r5-qc3w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/fabricjs/fabric.js/commit/7e1a122defd8feefe4eb7eaf0c180d7b0aeb6fee","tags":["x_refsource_MISC"]},{"url":"https://github.com/fabricjs/fabric.js/releases/tag/v720","tags":["x_refsource_MISC"]}],"priority":{"score":10.8,"factors":[{"name":"EPSS percentile","points":5.52},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"fabricjs","affectedVersions":[{"vendor":"fabricjs","product":"fabric.js","versions":["< 7.2.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-19T20:54:40.361805Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"fabric","vulnerableRanges":["<7.2.0"],"patched":["7.2.0"],"from":["GHSA-hfvx-25r5-qc3w"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-7973","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-27013","published":"2026-02-19","fixed":"7.2.0","kev":false},{"cve":"CVE-2026-44311","published":"2026-06-22","fixed":"7.4.0","kev":false,"link":{"from":"CVE-2026-27013","to":"CVE-2026-44311","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:fabric","fromFixed":"7.2.0","toFixed":"7.4.0","daysApart":123},{"kind":"similar","provenance":"machine","score":0.42,"basis":"same product + CWE + description similarity"}]}}],"package":"npm:fabric"}}