Frappe ERPNext SQL Injection Vulnerability in Material Request Function

Vulnerability

A SQL injection vulnerability has been identified in Frappe ERPNext version 15.57.5. The issue arises in the 'get_material_requests_based_on_supplier' function within 'erpnext/stock/doctype/material_request/material_request.py'. This vulnerability allows attackers to inject SQL queries through the 'txt' parameter, potentially leading to the extraction of sensitive information from the database.

Impact

Exploitation of this vulnerability allows for error-based SQL injection, enabling attackers to manipulate SQL queries and access or modify database information.

Reproduction

The vulnerability can be reproduced by sending a request to the 'get_material_requests_based_on_supplier' function with a crafted 'txt' parameter that includes SQL injection payloads. The function will process the input without proper sanitization, allowing the injected SQL to be executed against the database.

Remediation

Users are advised to update to the latest version of Frappe ERPNext, where this vulnerability has been patched.

Added: Oct 1, 2025, 3:24 PM
Updated: Oct 1, 2025, 3:24 PM

Vulnerability Rating

Custom Algorithm
spread
5.2
impact
2.5
exploitability
9.7
remediation
7.7
relevance
0.6
threat
6.4
urgency
2.9
incentive
10.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.