{"id":2304,"cve":"CVE-2026-66003","cve_url":"https:\/\/www.cvedetails.com\/cve\/CVE-2026-66003\/","cwe":"CWE-863","cwe_number":863,"cwe_url":"https:\/\/cwe.mitre.org\/data\/definitions\/863","cvss_score":7.1,"published":"2026-08-26","owasp":"A01 Broken Access Control","odc":"Interface","cdc":"Incorrect Interface","category":"Authentication, Authorization, and Session Management","subcategory":"Privilege Escalation","scope":"Remote","impact":"Information Disclosure","summary":"REST API bypass lets low\u2011privileged users read unauthorized linked DocTypes via API.","permalink":"https:\/\/netpack.pt\/vaitp\/vulnerability\/CVE-2026-66003\/","description":"Frappe is a full-stack web application framework written in Python and JavaScript. Prior to version 15.115.0, an access control bypass in the REST API allows a user to read data from Linked DocTypes that they are not authorized to access. When a document references another document through a Link field, the framework does not consistently enforce the linked DocType's own permissions when the record is retrieved through the REST API, so a low-privileged authenticated user can obtain fields from linked records outside their permitted scope. This issue is fixed in version 15.115.0.","solution":"Upgrade Frappe to version\u202f15.115.0\u202for later.","affected_component":"Frappe","fixed_by_upgrading":true,"vulnerable_code":"import frappe\n\ndef get_document_with_links(doc_type, name, fields):\n    \"\"\"\n    Retrieve a document and its linked fields via REST API.\n    \"\"\"\n    # Fetch the main document (permissions are checked)\n    doc = frappe.get_doc(doc_type, name)\n\n    # Resolve linked fields without checking linked DocType permissions\n    for field in fields:\n        meta = frappe.get_meta(doc_type)\n        df = meta.get_field(field)\n        if df.fieldtype == \"Link\":\n            # VULNERABLE: linked DocType permissions not enforced\n            linked_doc = frappe.db.get_value(df.options, doc.get(field))\n            doc[field] = linked_doc\n    return doc\n","patched_code":"import frappe\n\ndef get_document_with_links(doc_type, name, fields):\n    \"\"\"\n    Retrieve a document and its linked fields via REST API.\n    \"\"\"\n    # Fetch the main document (permissions are checked)\n    doc = frappe.get_doc(doc_type, name)\n\n    # Resolve linked fields with proper permission enforcement\n    for field in fields:\n        meta = frappe.get_meta(doc_type)\n        df = meta.get_field(field)\n        if df.fieldtype == \"Link\":\n            # FIX: enforce linked DocType permissions using get_doc\n            linked_doc = frappe.get_doc(df.options, doc.get(field))\n            doc[field] = linked_doc\n    return doc\n","payload_needed":false,"payload":null,"payload_status":"none","published_fix":[],"references":null}