Detect Frappe Framework Document.update() Authorization Bypass (CVE-2026-137550) in Splunk
Detects exploitation attempts against CVE-2026-137550, a missing authorization (CWE-862) vulnerability in the Frappe Framework before 15.122.0 and 16.x before 16.50.0. The flaw resides in Document.update(), which fails to validate whether the requesting user holds write permission on the targeted DocType/document before applying field changes. An authenticated (and in some configurations low-privilege or guest) user can invoke the framework's generic save/update RPC endpoints (e.g. frappe.client.set_value, frappe.client.save, or the /api/resource REST PUT endpoint) to modify documents they should not be able to touch, enabling privilege escalation, data tampering, and bypass of role-based permissions. Detection focuses on web/application access logs and Frappe audit telemetry showing update operations on sensitive DocTypes by principals lacking the corresponding role, anomalous volumes of set_value/save calls, and successful HTTP 200 PUT/POST responses to /api/resource and /api/method/frappe.client.* from unexpected users.
MITRE ATT&CK
SPL Detection Query
``` df00tech DF00-1bf5624a70 · https://df00tech.com/detections/CVE-2026-137550 · licence: https://df00tech.com/detections/licence ```
index=web (sourcetype="nginx:plus:access" OR sourcetype="nginx:access" OR sourcetype="iis" OR sourcetype="frappe:web")
(uri_path="/api/resource/*" OR uri_path="/api/method/frappe.client.set_value" OR uri_path="/api/method/frappe.client.save" OR uri_path="/api/method/frappe.client.insert")
(method="PUT" OR method="POST")
status>=200 status<300
| rex field=uri_path "/api/resource/(?<resource_doctype>[^/?]+)"
| rex field=uri_path "/api/method/(?<called_method>[^/?]+)"
| eval target=coalesce(resource_doctype, called_method)
| eval sensitive=if(match(target, "(?i)User|Role|Has Role|User Permission|Custom DocPerm|DocType|System Settings|Server Script|API Key"), 1, 0)
| stats count AS update_count values(target) AS targets dc(target) AS distinct_targets min(_time) AS first_seen max(_time) AS last_seen sum(sensitive) AS sensitive_hits by src_ip, user, http_user_agent
| where update_count>=5 OR sensitive_hits>=1
| convert ctime(first_seen) ctime(last_seen)
| sort - update_count Surfaces successful Frappe document update/insert operations via REST and client RPC endpoints in proxy/web access logs, aggregating by source and user to detect authorization-bypass abuse of Document.update().
Data Sources
Required Sourcetypes
False Positives & Tuning
- System/Administrator integration accounts performing legitimate bulk updates through the API.
- ERPNext background workers and scheduled jobs invoking frappe.client.save/set_value.
- Data Import tool runs during migrations producing many insert/update calls.
Other platforms for CVE-2026-137550
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 Frappe client.set_value update via REST method endpoint
Expected signal: Web/proxy access log entry: POST /api/method/frappe.client.set_value with 2xx status from the test source IP and API key user.
- Test 2 Frappe REST resource PUT document update
Expected signal: PUT /api/resource/ToDo/TEST-TODO-0001 with 2xx status in web server logs.
- Test 3 Scripted enumeration of multiple document updates
Expected signal: Eight POST /api/method/frappe.client.set_value entries with 2xx status from one source IP within a short window.
Response Playbook
Triage
- Identify the source IP, authenticated user/API key, and user-agent from the alerting events, and determine the user's assigned Frappe roles and whether they legitimately hold write permission on the targeted DocType(s).
- Confirm the Frappe/ERPNext version on the affected site (bench version or /api/method/frappe.utils.change_log) against the fixed releases (>=15.122.0 or >=16.50.0) to validate the site is vulnerable.
- Review the specific documents and fields modified by the flagged set_value/save calls, compare the before/after values in the Frappe document version history (__version / Version DocType) for unauthorized changes to permissions, roles, or financial fields.
- Determine whether the account used is interactive, an API key/token, or a guest/low-privilege session, which distinguishes targeted abuse from legitimate automation.
Containment
- Disable or rotate the credentials/API keys of any user confirmed to have made unauthorized updates, and revoke active sessions via the Frappe session store.
- Apply the vendor patch by upgrading to Frappe 15.122.0+ or 16.50.0+; if immediate patching is not possible, restrict /api/method/frappe.client.* and /api/resource write access at the reverse proxy/WAF to trusted source ranges.
- Temporarily tighten DocType permission rules (DocPerm) on sensitive DocTypes and enable 'Apply User Permissions' so framework-level checks are enforced even where update() missed them.
Evidence Collection
- Export the relevant web/reverse-proxy access logs (method, URL, status, user, source IP, user-agent) and the Frappe application logs for the affected time window.
- Snapshot the Version/__version document history and the Activity Log for all modified documents to preserve the before/after state and attribution.
- Preserve the Frappe site database backup (bench backup --with-files) and any Server Script or API Key objects that may have been altered.
Escalation Criteria
- !Escalate to incident response if modifications are observed to security-relevant DocTypes (User, Role, Has Role, API Key, Server Script, System Settings) indicating privilege escalation.
- !Escalate if the acting account is a guest/low-privilege user or an unexpected external IP, indicating confirmed exploitation rather than legitimate automation.
- !Escalate to the application/business owner if financial or transactional records were altered in a way requiring integrity remediation.
Investigation Guide
Forensic Artifacts
- >
Frappe Version/__version document history records showing unauthorized field changes. - >
Activity Log and Access Log DocType entries recording the update operations and their principals. - >
Reverse proxy / web server access logs with PUT/POST calls to /api/resource and /api/method/frappe.client.* endpoints. - >
API Key and Server Script DocType objects for signs of tampering.
Tuning Guidance
Baseline known integration accounts, API keys, and background worker IPs that legitimately perform bulk writes and exclude them or raise their thresholds. Lower the count threshold and alert on any single write to security-relevant DocTypes (User, Role, Has Role, API Key, Server Script, System Settings) by non-administrative users. Where Frappe audit telemetry (Version/Activity Log) is ingested, correlate the acting user's roles against the DocType's write permission to confirm an actual authorization bypass before alerting, reducing false positives from legitimately privileged bulk edits.
Hunting Queries
Hunts for users or source IPs generating anomalous volumes of Frappe document update calls over time, a signal of enumeration or scripted abuse of the Document.update() flaw.
// df00tech DF00-1bf5624a70 · https://df00tech.com/detections/CVE-2026-137550 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has "/api/method/frappe.client.set_value" or csUriStem has "/api/resource/" | where toupper(csMethod) in ("PUT","POST") and scStatus startswith "2" | summarize count() by csUserName, cIP, bin(TimeGenerated, 1h) | where count_ > 10 ``` df00tech DF00-1bf5624a70 · https://df00tech.com/detections/CVE-2026-137550 · licence: https://df00tech.com/detections/licence ```
index=web (uri_path="/api/method/frappe.client.set_value" OR uri_path="/api/resource/*") (method=PUT OR method=POST) status>=200 status<300 | timechart span=1h count by user Atomic Red Team Tests
Simulates a low-privilege authenticated user attempting to modify a document field through the frappe.client.set_value RPC endpoint, exercising the Document.update() code path.
Command
curl -s -X POST "https://frappe.lab.local/api/method/frappe.client.set_value" -H "Authorization: token ${API_KEY}:${API_SECRET}" -H "Content-Type: application/json" -d '{"doctype":"User","name":"[email protected]","fieldname":"user_type","value":"System User"}' Cleanup
curl -s -X POST "https://frappe.lab.local/api/method/frappe.client.set_value" -H "Authorization: token ${API_KEY}:${API_SECRET}" -H "Content-Type: application/json" -d '{"doctype":"User","name":"[email protected]","fieldname":"user_type","value":"Website User"}' Expected Telemetry
Web/proxy access log entry: POST /api/method/frappe.client.set_value with 2xx status from the test source IP and API key user.
Expected Detection
KQL/SPL rules match the successful POST to frappe.client.set_value; alert fires if volume threshold met or target is a sensitive DocType.
Attempts to update a document directly via the /api/resource REST PUT endpoint to exercise the missing authorization check on update.
Command
curl -s -X PUT "https://frappe.lab.local/api/resource/ToDo/TEST-TODO-0001" -H "Authorization: token ${API_KEY}:${API_SECRET}" -H "Content-Type: application/json" -d '{"status":"Closed","priority":"High"}' Cleanup
curl -s -X PUT "https://frappe.lab.local/api/resource/ToDo/TEST-TODO-0001" -H "Authorization: token ${API_KEY}:${API_SECRET}" -H "Content-Type: application/json" -d '{"status":"Open","priority":"Medium"}' Expected Telemetry
PUT /api/resource/ToDo/TEST-TODO-0001 with 2xx status in web server logs.
Expected Detection
REST resource PUT branch of the detection matches; sequence/aggregation rules correlate with other update calls from the same source.
Issues a burst of save/set_value calls across several documents from one source to trigger the volume-based authorization-bypass detection.
Command
for i in $(seq 1 8); do curl -s -X POST "https://frappe.lab.local/api/method/frappe.client.set_value" -H "Authorization: token ${API_KEY}:${API_SECRET}" -H "Content-Type: application/json" -d "{\"doctype\":\"ToDo\",\"name\":\"TEST-TODO-000${i}\",\"fieldname\":\"status\",\"value\":\"Closed\"}"; done Cleanup
for i in $(seq 1 8); do curl -s -X POST "https://frappe.lab.local/api/method/frappe.client.set_value" -H "Authorization: token ${API_KEY}:${API_SECRET}" -H "Content-Type: application/json" -d "{\"doctype\":\"ToDo\",\"name\":\"TEST-TODO-000${i}\",\"fieldname\":\"status\",\"value\":\"Open\"}"; done Expected Telemetry
Eight POST /api/method/frappe.client.set_value entries with 2xx status from one source IP within a short window.
Expected Detection
Volume-threshold (update_count >= 5) condition in KQL/SPL/CQL/AQL/YARA-L fires on the burst.