CVE-2026-47199
Received Received - Intake

SQL Injection in Frappe Framework

Vulnerability report for CVE-2026-47199, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-10

Last updated on: 2026-07-10

Assigner: GitHub, Inc.

Description

Frappe is a full-stack web application framework. Prior to 16.18.3 and 15.108.0, check_safe_sql_query permitted SELECT INTO OUTFILE queries, which could potentially work on self-hosted sites if database permissions are not well aligned and MySQL FILE privileges are available. This issue is fixed in versions 16.18.3 and 15.108.0.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-10
Last Modified
2026-07-10
Generated
2026-07-11
AI Q&A
2026-07-11
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
frappe frappe to 16.18.3 (exc)
frappe frappe to 15.108.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 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.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in the Frappe web application framework versions prior to 16.18.3 and 15.108.0. The issue is that the function check_safe_sql_query allowed SELECT INTO OUTFILE queries to be executed. Such queries can write database query results directly to files on the server. If a self-hosted site has improperly configured database permissions and the MySQL FILE privilege is enabled, an attacker could exploit this to write files on the server, potentially leading to unauthorized data exposure or other malicious actions.

Impact Analysis

If exploited, this vulnerability could allow an attacker to write arbitrary files to the server hosting the database, assuming the database permissions and MySQL FILE privileges are not properly restricted. This could lead to unauthorized data disclosure, data manipulation, or potentially further compromise of the server environment.

Mitigation Strategies

To mitigate this vulnerability, upgrade Frappe to version 16.18.3 or later, or 15.108.0 or later, where the issue has been fixed.

Additionally, ensure that database permissions are properly aligned and that MySQL FILE privileges are restricted to trusted users only to reduce the risk of exploitation.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-47199. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart