CVE-2026-47199 Frappe: check_safe_sql_query Permits SELECT INTO OUTFILE
Attackers can execute SELECT INTO OUTFILE queries to write files to the server if MySQL FILE privileges are enabled, potentially leading to data exfiltration or code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-47199?
CVE-2026-47199 is a low-severity SQL injection vulnerability in frappe, published on 10 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-89
Which versions are affected by CVE-2026-47199?
How do I fix CVE-2026-47199?
No fix has been published for CVE-2026-47199 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2026-47199 being exploited?
There is no known exploitation of CVE-2026-47199 in the wild and no public exploit code.
Sources
Also known as GHSA-wx8j-cw4r-vrhv.