ZeroHour
ZDI Published Advisoriespublished ()ingested

ZDI-26-588: Fabric.js loadFromJSON Server-Side Request Forgery Vulnerability

AI summary · glm-5.3-flash

ZDI disclosed a server-side request forgery in Fabric.js loadFromJSON (CVE-2026-19504) that can leak sensitive information from affected implementations.

Zero Day Initiative advisory ZDI-26-588 describes a server-side request forgery vulnerability in the Fabric.js canvas library's loadFromJSON function. Exploitation requires interaction with the library and attack vectors vary by implementation, potentially exposing sensitive information. The issue is rated 4.0 on the CVSS scale and tracked as CVE-2026-19504. The advisory does not report exploitation in the wild.

  • SSRF in Fabric.js loadFromJSON can disclose sensitive information
  • Exploitability depends on how applications implement the library
  • CVSS 4.0; tracked as CVE-2026-19504

Vulnerabilities mentionedAll →

CVEVulnerabilityCVSSEPSSFlagsAffectedExposurePublished
CVE-2026-19504
Server-Side Request Forgery in Fabric.js loadFromJSON via Unvalidated URI

CVE-2026-19504 is a Server-Side Request Forgery (SSRF) flaw in the open-source Fabric.js canvas library, disclosed by Trend Micro Zero Day Initiative as ZDI-26-588. The loadFromJSON method, which reconstructs a canvas from serialized JSON, does not properly validate URIs (such as image/asset URLs embedded in the JSON) before fetching them. If an application passes attacker-influenced JSON to loadFromJSON in a context where the library retrieves those URLs — most notably server-side Node.js image or canvas-rendering pipelines — an attacker can point those fetches at internal-only network resources and obtain sensitive information such as internal service responses or cloud metadata. Severity is rated medium (CVSS 3.0 score 4.0) with a local attack vector and high attack complexity, reflecting that exploitability depends heavily on how the library is integrated. No public proof-of-concept exists and there is no evidence of exploitation in the wild; the flaw is not on the CISA Known Exploited Vulnerabilities list.

Do: Upgrade Fabric.js to the latest release as soon as the vendor ships a patched version, since no fixed version range is yet published. Until then, do not pass untrusted or user-supplied JSON to loadFromJSON on the server: pre-scan the payload for src/href URL fields and enforce an allowlist (scheme, host, and public IP ranges, blocking RFC1918, link-local, and cloud metadata endpoints such as 169.254.169.254). Additionally, restrict outbound egress from servers that run Node-based rendering with Fabric.js so that even a successful SSRF cannot reach internal resources.

4.0
  • Fabric.js project Fabric.js
mass≈3M+ weekly npm downloads of the fabric package worldwide; the truly exploitable subset (server-side Node.js deployments feeding untrusted JSON to…
Full article

This vulnerability allows remote attackers to disclose sensitive information on affected installations of Fabric.js. Interaction with this library is required to exploit this vulnerability but attack vectors may vary depending on the implementation. The ZDI has assigned a CVSS rating of 4.0. The following CVEs are assigned: CVE-2026-19504.

This source does not provide full text. Read it at zerodayinitiative.com.