Skip to content
Access control Advisory Intermediate CVE-2026-39351

GHSL-2026-012: Unauthorized Data Exposure via REST API Link Expansion in Frappe - CVE-2026-39351

The Frappe REST API's link expansion feature fetched linked documents without checking whether the requesting user had permission to view them. An attacker could read documents they were not authorised to access by requesting a document with link expansion enabled.

m-y-mo Follow

Originally disclosed on GitHub Security Lab

Frappe v15.96.0 contains a vulnerability (GHSL-2026-012) in its REST API, allowing attackers to bypass doctype restrictions via v1 REST document read with expandlinks leaking linked document data without permission checks.

m-y-mo, on GitHub Security Lab

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

The link-expansion helper fetched linked documents with frappe.get_doc without calling check_permission, and serialisation then returned the full document.

Impact

A user could view documents they do not have access to via link expansion.

What the attacker needed

Access to the Frappe REST API; a document with links to restricted records

How it was found

  1. Send a GET request to the v1 REST API for a document, setting expand_links to true.
  2. The server expands linked documents without checking the user's permission on them.
  3. The response includes the full linked documents, exposing data the user should not see.

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.

Frappe is a web framework where records (documents) can link to other records. Normally the system checks whether you are allowed to see a record before showing it. Here, a feature that automatically pulls in linked records skipped that check, so a user could see records they should not have been able to.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by m-y-mo

View all

64 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.