{"cve":"CVE-2026-27013","nvd":{"published":"2026-02-19T20:25:44.230","modified":"2026-06-17T10:26:32.110","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79","CWE-116"],"references":["https://github.com/fabricjs/fabric.js/commit/7e1a122defd8feefe4eb7eaf0c180d7b0aeb6fee","https://github.com/fabricjs/fabric.js/releases/tag/v720","https://github.com/fabricjs/fabric.js/security/advisories/GHSA-hfvx-25r5-qc3w"],"products":["fabricjs:fabric.js"],"source":"nvd","synced_at":"2026-10-19T22:23:35.260773158+00:00"},"epss":{"cve":"CVE-2026-27013","score":0.00328,"percentile":0.25905,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-hfvx-25r5-qc3w","url":"https://osv.dev/vulnerability/GHSA-hfvx-25r5-qc3w","summary":"Fabric.js Affected by Stored XSS via SVG Export","modified":"2026-02-22T23:24:35.168357Z","packages":[{"ecosystem":"npm","name":"fabric","purl":"pkg:npm/fabric","ranges":["<7.2.0"],"fixed":["7.2.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}