CVE-2026-47182: Frappe Unvalidated Child Query Key

Unvalidated dictionary keys are directly instantiated into `ChildQuery` objects. This allows attackers to inject malicious SQL syntax or arbitrary SQL functions via dictionary keys. Ensure key strings are validated (e.g. by checking if they are uppercase with `.isupper()`) before usage.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-47182-frappe-unvalidated-child-query-key --engine opengrep

Description

Unvalidated dictionary keys are directly instantiated into `ChildQuery` objects. This allows attackers to inject malicious SQL syntax or arbitrary SQL functions via dictionary keys. Ensure key strings are validated (e.g. by checking if they are uppercase with `.isupper()`) before usage.