{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-27013","published":"2026-02-19T20:25:44.230000Z","last_modified":"2026-06-17T10:26:32.110000Z","status":"Analyzed","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-79","CWE-116"],"cpes":[{"criteria":"cpe:2.3:a:fabricjs:fabric.js:*:*:*:*:*:node.js:*:*","part":"a","vendor":"fabricjs","product":"fabric.js","version_end_excluding":"7.2.0"}],"cpes_truncated":false,"vendors":["fabricjs"],"products":["fabricjs/fabric.js"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-hfvx-25r5-qc3w","ecosystem":"npm","name":"fabric","purl":"pkg:npm/fabric","ranges":[{"introduced":"0","fixed":"7.2.0"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2026-27013/","html_en":"/en/cve/CVE-2026-27013/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-27013","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-27013"},"untrusted":{"vendor_name":"Fabricjs","product_name":"Fabric.js","desc_en":"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.","affected":[{"untrusted_vendor":"fabricjs","untrusted_product":"fabric.js","versions":[]}],"references":[{"url":"https://github.com/fabricjs/fabric.js/commit/7e1a122defd8feefe4eb7eaf0c180d7b0aeb6fee","tags":["Patch"]},{"url":"https://github.com/fabricjs/fabric.js/releases/tag/v720","tags":["Product","Release Notes"]},{"url":"https://github.com/fabricjs/fabric.js/security/advisories/GHSA-hfvx-25r5-qc3w","tags":["Exploit","Patch","Vendor Advisory"]}]}}