fabric@3.6.2-browser vulnerabilities

Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.

  • latest version

    7.2.0

  • latest non vulnerable version

  • first published

    14 years ago

  • latest version published

    7 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the fabric package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Cross-site Scripting (XSS)

    fabric is an Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the loadFromJSON() function, which is used in the FabricObjectSVGExportMixin class to deserialize unsanitized JSON and assign properties directly to objects. An attacker can inject malicious values into SVG attributes such as id, xlink:href, which are then exported via the toSVG() function. This allows scripts to be executed when the SVG is rendered in a browser.

    How to fix Cross-site Scripting (XSS)?

    Upgrade fabric to version 7.2.0 or higher.

    <7.2.0