توضیح (فارسی)
Fabric.js تا نسخه 7.4.0 شامل یک آسیبپذیری Cross-Site Scripting است که به مهاجمها اجازه میدهد مارکاپ را در SVG صادرشده تزریق کنند، با ارائه JSON کانواس دستکاریشده با مقادیر رشتهای width و height. مهاجمها میتوانند ویژگیهای unescapedِ width، height، یا viewBox که توسط toSVG() نوشته میشوند را ببندند و handlerهای onload یا عناصر script تزریق کنند که هنگام مشاهده SVG توسط کاربران اجرا میشوند.
Original description (English)
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.