Vulnerabilities in pkg:pypi/frappe
PACKAGECVE-2025-30217 is a MODERATE sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Frappe libraries in the PyPI ecosystem. The issue involves frappe has possibility of sql injection due to improper validations. Remediation is available by upgrading affected packages to version 14.93.2, 15.55.0.
pkg:pypi/frappe
Vulnerability advisories affecting package pkg:pypi/frappe. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-6phg-4wmq-h5h3 | CVE-2025-30217 | MODERATE | Frappe has possibility of SQL injection due to improper validations |
| GHSA-qrv3-jc3h-f3m6 | CVE-2025-30214 | HIGH | Frappe vulnerable to information disclosure leading to account takeover |
| GHSA-v342-4xr9-x3q3 | CVE-2025-30213 | MODERATE | Frappe has Possibility of Remote Code Execution due to improper validation |
| GHSA-3hj6-r5c9-q8f3 | CVE-2025-30212 | MODERATE | Frappe has possibility of SQL injection due to improper validations |
CVE-2025-30217 at a Glance
How to Fix CVE-2025-30217
To remediate this vulnerability, upgrade all affected Frappe dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install frappe>=14.93.2
pip install frappe>=15.55.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show frappe
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-30217, inspect your installed packages using pip:
pip show frappe
Analyze the terminal output to locate any version of Frappe in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 14.93.2), your application is affected.
Note: The pip show frappe command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where 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. In Frappe, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-30217 Affected Frappe Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
frappe
|
PyPI |
< 14.93.2
|
14.93.2
|
|
frappe
|
PyPI |
≥ 15.0.0
< 15.55.0
|
15.55.0
|
References
Frequently Asked Questions
What is CVE-2025-30217?
Which Frappe versions are affected?
What version fixes CVE-2025-30217?
Is frappe affected?
What CWE is associated with CVE-2025-30217?
How can I check PyPI dependencies for CVE-2025-30217?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6phg-4wmq-h5h3",
"modified" : "2025-03-31T13:12:11Z",
"published" : "2025-03-26T17:13:08Z",
"aliases" : [ "CVE-2025-30217" ],
"summary" : "Frappe has possibility of SQL injection due to improper validations",
"details" : "### Impact\nSQL injection could be achieved via a specially crafted request, which could allow malicious person to gain access to sensitive information.\n\n### Workarounds\nUpgrading is required, no other workaround is present.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "frappe"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.93.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "frappe"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "15.0.0"
}, {
"fixed" : "15.55.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/frappe/frappe/security/advisories/GHSA-6phg-4wmq-h5h3"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-30217"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/frappe/frappe"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-26T17:13:08Z",
"nvd_published_at" : "2025-03-26T17:15:26Z"
}
}