SQL injection in Frappe ERPNext Selling and Buying modules
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
Frappe ERPNext from 4.3.0 before 15.121.6 and from 16.0.0 before 16.37.0 has an SQL injection flaw (CWE-89) in an endpoint of the Selling and Buying modules. Caller-supplied data overrides a request value validated earlier and reaches a database query unvalidated. Any authenticated user, even a portal user with no roles, can extract session data and take over accounts such as administrators.
Written with Claude Haiku 5.5 from the sources below · 2026-11-21
Description from the CNA
Frappe ERPNext 4.3.0 before 15.121.6 and 16.x before 16.37.0 contains an SQL injection vulnerability in an endpoint of the Selling and Buying modules, where a request value validated early can be overridden by caller-supplied data that reaches a database query unvalidated. Any authenticated user, including a portal user with no roles, can send crafted requests to extract sensitive data, including active session data, and take over other accounts such as administrators.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade ERPNext to 15.121.6 in the 15.x line or to 16.37.0 in the 16.x line.
Written with Claude Haiku 5.5 from the sources below · 2026-11-21
- Fix · CNA erpnext (frappe) Fixed in 15.121.6
- Fix · CNA erpnext (frappe) Fixed in 16.37.0
Timeline
- 2026-11-21 Threatist record created from CVE-2026-134372
- 2026-11-21 Alias added: GHSA-jvg7-5h3q-2m9m
- 2026-11-24 CISA SSVC decision points changed
References
More frappe vulnerabilities
- TI-2026-28140 ERPNext v15.103.1 and before is vulnerable to Server-Side Template Injection (SSTI). CVSS 3.1CRITICAL 9.8
- TI-2025-40873 An issue was discovered in Frappe ERPNext through 15.89.0. CVSS 3.1CRITICAL 9.8
- TI-2025-40872 An issue was discovered in Frappe ERPNext through 15.89.0. CVSS 3.1CRITICAL 9.8
- TI-2025-40871 A Server-Side Template Injection (SSTI) vulnerability exists in the Frappe ERPNext… CVSS 3.1CRITICAL 9.8
- TI-2025-32462 In Frappe ERPNext 15.57.5, the function get_rfq_containing_supplier() at… CVSS 3.1HIGH 8.2
- TI-2025-32461 In Frappe ERPNext 15.57.5, the function get_stock_balance_for() at… CVSS 3.1HIGH 8.2
Sources
- CVE-2026-134372 · CVE Program
- CVE-2026-134372 · NVD
- FIRST EPSS
- GHSA-jvg7-5h3q-2m9m · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences