CVE-2025-30212: Frappe SQL Injection Vulnerability
MODERATECVE-2025-30212 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.89.0, 15.51.0.
CVE-2025-30212 at a Glance
How to Fix CVE-2025-30212
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.89.0
pip install frappe>=15.51.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-30212, 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.89.0), 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-30212 Affected Frappe Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
frappe
|
PyPI |
< 14.89.0
|
14.89.0
|
|
frappe
|
PyPI |
≥ 15.0.0
< 15.51.0
|
15.51.0
|
References
Frequently Asked Questions
What is CVE-2025-30212?
Which Frappe versions are affected?
What version fixes CVE-2025-30212?
Is frappe affected?
What CWE is associated with CVE-2025-30212?
How can I check PyPI dependencies for CVE-2025-30212?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3hj6-r5c9-q8f3",
"modified" : "2025-03-25T16:36:02Z",
"published" : "2025-03-25T16:36:02Z",
"aliases" : [ "CVE-2025-30212" ],
"summary" : "Frappe has possibility of SQL injection due to improper validations",
"details" : "### Impact\nAn SQL Injection vulnerability has been identified in Frappe Framework which could allow a malicious actor to access sensitive information.\n\n### Workarounds\nUpgrading is required, no other workaround is present.\n\n### Credits\n\nThanks to Thanh of Calif.io for reporting the issue",
"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.89.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "frappe"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "15.0.0"
}, {
"fixed" : "15.51.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/frappe/frappe/security/advisories/GHSA-3hj6-r5c9-q8f3"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-30212"
}, {
"type" : "WEB",
"url" : "https://github.com/frappe/frappe/commit/27f13437db161a173137d91cd07d0f9287d7c556"
}, {
"type" : "WEB",
"url" : "https://github.com/frappe/frappe/commit/2ebd88520ecfa9bb7d3392b7de8c8f94a86ec05c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/frappe/frappe"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-25T16:36:02Z",
"nvd_published_at" : "2025-03-25T15:15:26Z"
}
}