<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Fri, 02 Oct 2026 05:40:24 +0000</lastBuildDate>
    <item>
      <title>fkie_cve-2026-44311</title>
      <link>https://db.gcve.eu/vuln/fkie_cve-2026-44311</link>
      <description>&lt;p&gt;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 &amp;lt;stop&amp;gt; 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&amp;#39;s browser. This vulnerability is fixed in 7.4.0.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;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 &amp;lt;stop&amp;gt; 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&amp;#39;s browser. This vulnerability is fixed in 7.4.0.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/fkie_cve-2026-44311</guid>
    </item>
    <item>
      <title>GHSA-w22m-hvvm-xmwx — Fabric.js improper escaping in fabric.Gradient colorStops leads to XSS in SVG serialization</title>
      <link>https://db.gcve.eu/vuln/ghsa-w22m-hvvm-xmwx</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: fabric&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Specifically, the `color` field within the `colorStops` array of a `fabric.Gradient` object is not properly escaped when converted into SVG `&amp;lt;stop&amp;gt;` elements. If an application renders the generated SVG string into the DOM (e.g., via `innerHTML`), this may allow an attacker to inject arbitrary HTML/SVG and execute JavaScript in the victim&amp;#39;s browser.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;During SVG export, Fabric.js serializes gradient color stops into `&amp;lt;stop&amp;gt;` elements like:&lt;/p&gt;
&lt;p&gt;```xml
&amp;lt;stop offset=&amp;#34;0&amp;#34; stop-color=&amp;#34;...&amp;#34;&amp;gt;&amp;lt;/stop&amp;gt;
```&lt;/p&gt;
&lt;p&gt;However, the `color` value is inserted into the `stop-color` attribute without proper escaping of special characters such as `&amp;#34;`, `&amp;lt;`, and `&amp;gt;`. This allows crafted input to break out of the attribute context and inject arbitrary markup.&lt;/p&gt;
&lt;p&gt;For example:
```js
color: &amp;#39;red&amp;#34;&amp;gt;&amp;lt;img src=&amp;#34;x&amp;#34; onerror=&amp;#34;alert(1)&amp;#34;&amp;gt;&amp;#39;
```&lt;/p&gt;
&lt;p&gt;may result in:
```xml
&amp;lt;stop offset=&amp;#34;0&amp;#34; stop-color=&amp;#34;red&amp;#34;&amp;gt;
&amp;lt;img src=&amp;#34;x&amp;#34; onerror=&amp;#34;alert(1)&amp;#34;&amp;gt;
```
This breaks the intended SVG structure and introduces executable HTML.&lt;/p&gt;
&lt;p&gt;### PoC (Proof of Concept)&lt;/p&gt;
&lt;p&gt;Successfully verified on **v7.2.0** (current latest version). The following HTML and JavaScript code reproduces the vulnerability. The code constructs a rectangle with a maliciously crafted gradient color stop and exports it to SVG:&lt;/p&gt;
&lt;p&gt;```html
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
   &amp;lt;title&amp;gt;Fabric.js SVG E…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: fabric&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Specifically, the `color` field within the `colorStops` array of a `fabric.Gradient` object is not properly escaped when converted into SVG `&amp;lt;stop&amp;gt;` elements. If an application renders the generated SVG string into the DOM (e.g., via `innerHTML`), this may allow an attacker to inject arbitrary HTML/SVG and execute JavaScript in the victim&amp;#39;s browser.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;During SVG export, Fabric.js serializes gradient color stops into `&amp;lt;stop&amp;gt;` elements like:&lt;/p&gt;
&lt;p&gt;```xml
&amp;lt;stop offset=&amp;#34;0&amp;#34; stop-color=&amp;#34;...&amp;#34;&amp;gt;&amp;lt;/stop&amp;gt;
```&lt;/p&gt;
&lt;p&gt;However, the `color` value is inserted into the `stop-color` attribute without proper escaping of special characters such as `&amp;#34;`, `&amp;lt;`, and `&amp;gt;`. This allows crafted input to break out of the attribute context and inject arbitrary markup.&lt;/p&gt;
&lt;p&gt;For example:
```js
color: &amp;#39;red&amp;#34;&amp;gt;&amp;lt;img src=&amp;#34;x&amp;#34; onerror=&amp;#34;alert(1)&amp;#34;&amp;gt;&amp;#39;
```&lt;/p&gt;
&lt;p&gt;may result in:
```xml
&amp;lt;stop offset=&amp;#34;0&amp;#34; stop-color=&amp;#34;red&amp;#34;&amp;gt;
&amp;lt;img src=&amp;#34;x&amp;#34; onerror=&amp;#34;alert(1)&amp;#34;&amp;gt;
```
This breaks the intended SVG structure and introduces executable HTML.&lt;/p&gt;
&lt;p&gt;### PoC (Proof of Concept)&lt;/p&gt;
&lt;p&gt;Successfully verified on **v7.2.0** (current latest version). The following HTML and JavaScript code reproduces the vulnerability. The code constructs a rectangle with a maliciously crafted gradient color stop and exports it to SVG:&lt;/p&gt;
&lt;p&gt;```html
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
   &amp;lt;title&amp;gt;Fabric.js SVG E…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/ghsa-w22m-hvvm-xmwx</guid>
    </item>
  </channel>
</rss>
