CVE-2026-25956: Python Unvalidated Dict Key In Query Builder

Unvalidated dictionary keys in query builder can lead to SQL Injection or Reflected XSS via unsanitized exception messages. Validate keys (e.g., check format explicitly via .isalpha(), .isupper() or allowlist matching) before using them in queries or reflective error bounds.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-25956-python-unvalidated-dict-key-in-query-builder --engine opengrep

Description

Unvalidated dictionary keys in query builder can lead to SQL Injection or Reflected XSS via unsanitized exception messages. Validate keys (e.g., check format explicitly via .isalpha(), .isupper() or allowlist matching) before using them in queries or reflective error bounds.