CVE-2026-31877
SQL Injection in Frappe Framework Allows Unauthorized Data Access
Publication date: 2026-03-11
Last updated on: 2026-03-13
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| frappe | frappe | to 14.99.0 (exc) |
| frappe | frappe | From 15.0.0 (inc) to 15.84.0 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-89 | The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
CVE-2026-31877 is a SQL injection vulnerability in the Frappe web application framework affecting versions prior to 15.84.0 and 14.99.0.
The vulnerability occurs because input fields are not properly sanitized, allowing an attacker to send a specially crafted request to a specific endpoint.
This crafted request can exploit the SQL injection flaw to execute unauthorized database queries and extract information that should not be accessible.
The issue has been fixed in versions 15.84.0 and 14.99.0 by addressing the input sanitization problem.
How can this vulnerability impact me? :
This vulnerability can allow an attacker to extract sensitive or unauthorized information from the database of an affected Frappe application.
Because the attacker can perform SQL injection without any privileges or user interaction, the impact is severe and can lead to data breaches.
Such unauthorized data access can compromise confidentiality and potentially lead to further exploitation depending on the data obtained.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
The immediate step to mitigate this vulnerability is to upgrade the frappe package to version 15.84.0 or 14.99.0 or later, where the SQL injection flaw has been fixed.