ADVISORIES

PyPA Advisory Database

PYSEC-2026-426

Mocodo vulnerable to SQL injection in `/web/generate.php`

Details

Mocodo Mocodo Online 4.2.6 and below does not properly sanitize the sql_case input field in /web/generate.php, allowing remote attackers to execute arbitrary SQL commands and potentially command injection, leading to remote code execution (RCE) under certain conditions.

Affected packages

EcosystemPackageAffected versions
PyPImocodo
All versions before 4.2.7 (fixed in 4.2.7)

References