製品・ソフトウェアに関する情報
Fabric.jsにおける複数の脆弱性
Title Fabric.jsにおける複数の脆弱性
Summary

Fabric.jsはJavaScriptのHTML5キャンバスライブラリです。バージョン7.4.0以前のFabric.jsには、toSVG()メソッドを通じたSVGシリアル化時にユーザー制御の入力が適切にエスケープされないことによる潜在的なクロスサイトスクリプティング(XSS)脆弱性があります。具体的には、fabric.GradientオブジェクトのcolorStops配列内のcolorフィールドが、SVGのstop要素に変換される際に正しくエスケープされていません。アプリケーションが生成したSVG文字列をDOMにレンダリングすると、攻撃者が任意のHTMLやSVGを注入し、被害者のブラウザ上でJavaScriptを実行する可能性があります。この脆弱性はバージョン7.4.0で修正されました。

Possible impacts ・当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 
Solution

ベンダ情報を参照して適切な対策を実施してください。

Publication Date June 22, 2026, midnight
Registration Date June 29, 2026, 11:18 a.m.
Last Update June 29, 2026, 11:18 a.m.
CVSS3.0 : 警告
Score 6.1
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected System
Fabric.js
Fabric.js 7.4.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年06月29日]
  掲載
June 29, 2026, 11:18 a.m.

NVD Vulnerability Information
CVE-2026-44311
Summary

Fabric.js is a Javascript HTML5 canvas library. Prior to 7.4.0, a potential Cross-Site Scripting (XSS) vulnerability exists in Fabric.js due to improper escaping of user-controlled input during SVG serialization via the toSVG() method. Specifically, the color field within the colorStops array of a fabric.Gradient object is not properly escaped when converted into SVG <stop> elements. If an application renders the generated SVG string into the DOM, this may allow an attacker to inject arbitrary HTML/SVG and execute JavaScript in the victim's browser. This vulnerability is fixed in 7.4.0.

Publication Date June 23, 2026, 7:16 a.m.
Registration Date June 27, 2026, 4:11 a.m.
Last Update June 27, 2026, 5:09 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:fabricjs:fabric.js:*:*:*:*:*:node.js:*:* 7.4.0
Related information, measures and tools
Common Vulnerabilities List