Skip to content
SSRF Advisory Intermediate CVE-2026-19504

Fabric.js loadFromJSON Server-Side Request Forgery Vulnerability

The loadFromJSON method in Fabric.js did not properly validate a URI before fetching resources, so an attacker could make the library request network resources it should not reach. This could allow disclosure of sensitive information, though the text says interaction with the library is required and attack vectors vary by implementation.

nedlir Follow

Originally disclosed on Zero Day Initiative

Medium 4.0 View original

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.

nedlir, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the loadFromJSON method fetched resources from attacker-supplied URIs without validating or restricting where those URIs pointed.

Impact

An attacker could gain improper access to network resources and potentially disclose sensitive information, but the text notes that interaction with the library is required and that attack vectors may vary depending on the implementation.

What the attacker needed

Interaction with the library; implementation-dependent attack vector

The fix

The vendor issued an update to correct the vulnerability, referenced in a pull request.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Fabric.js is a JavaScript library for drawing and manipulating graphics on a web page. Its loadFromJSON method rebuilds a drawing from saved data, and that data can point to images or other resources by web address. Because the library did not check those addresses, someone could supply an address that points at a private or internal system, and the server running Fabric.js would fetch it, potentially revealing information the attacker should not see.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.