CVE-2025-52041

High

Description

In Frappe ERPNext 15.57.5, the function get_stock_balance_for() at erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py is vulnerable to SQL Injection, which allows an attacker to extract all information from databases by injecting a SQL query into the inventory_dimensions_dict parameter.

SeverityHigh
CVSS8.2
Exploit probability—
ProductFrappe Erpnext
PublishedOct 1, 2025
First seenOct 1, 2025
Weakness typeCWE-89SQL injection

How to fix

Affected products

ProductAffected versionsFixed in
frappe erpnext15.57.5—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-52041 · Frappe Erpnext · Dark Radar