CVE-2026-40771 WordPress Contest Gallery plugin <= 28.1.6 - SQL Injection vulnerability
Unauthenticated attackers can execute arbitrary SQL commands via the Contest Gallery plugin, potentially reading or modifying database contents.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-40771?
CVE-2026-40771 is a critical SQL injection vulnerability in Wasiliy Strecker Contest Gallery, published on 15 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Unauthenticated SQL Injection in Contest Gallery <= 28.1.6 versions.
Weakness: CWE-89
Which versions are affected by CVE-2026-40771?
How do I fix CVE-2026-40771?
No fix has been published for CVE-2026-40771 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-40771 being exploited?
There is no known exploitation of CVE-2026-40771 in the wild and no public exploit code.
Sources
Also known as GHSA-w97c-mw8g-gjf8.