Skip to main content
VulnerabilityPublished

CVE-2025-52040: Frappe ERPNext · SQL Injection

Source CVE Database V5

0

Not known to be exploited · CVSS 8.2 High.

Data as of 26 Oct 2026, 12:29 UTC

CVSS 3.1 base score
8.2High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 25% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Oct 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

AI-suggested

European organizations using Frappe ERPNext 15.57.5 should immediately review and restrict access to the affected get_blanket_orders() function and the blanket_order_type parameter. Implementing strict input validation and parameterized queries or prepared statements in the codebase is critical to prevent SQL Injection. Until an official patch is released, organizations should consider deploying Web Application Firewalls (WAFs) with custom rules to detect and block SQL Injection attempts targeting this parameter. Conduct thorough code audits and penetration testing focused on SQL Injection vectors within ERPNext modules. Restrict database user permissions to the minimum necessary to limit the impact of potential exploitation. Monitor logs for suspicious query patterns or unusual database access. Additionally, organizations should maintain regular backups of ERP data and have an incident response plan ready to address potential breaches. Engaging with the ERPNext community or vendor for updates and patches is also recommended to ensure timely remediation.

Description

In Frappe ERPNext 15.57.5, the function get_blanket_orders() at erpnext/controllers/queries.py is vulnerable to SQL Injection, which allows an attacker can extract all information from databases by injecting a SQL query into the blanket_order_type parameter.

References

Community reviews

Loading reviews…