CVE-2026-16056: Contest Gallery WordPress plugin missing authorization in OpenAI prompt handler

CVE-2026-16056 · Severity: medium · CVSS 4.3 · Published 2026-08-04

Contest Gallery is a WordPress plugin used to manage and display image galleries on websites. The plugin contains a flaw that allows any authenticated user—even those with minimal permissions (Subscriber role)—to access and download the complete history of OpenAI API prompts that site administrators have used, potentially exposing confidential business information, client briefs, and proprietary instructions.

Technologies: Contest Gallery. Vendors: Contest Gallery.

Quick answers

Is CVE-2026-16056 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-16056 being exploited in the wild.
How severe is CVE-2026-16056?
Medium severity, with a CVSS score of 4.3, published 4 August 2026.
Which products and versions are affected?
Contest Gallery before 30.0.7.
Is there a fix for CVE-2026-16056?
A patch was published on 2026: Fixed in version 30.0.7 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-16056 attacked?
It is attacked over the network.
Am I affected by CVE-2026-16056?
Check whether you run Contest Gallery at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability is an authorization bypass (CWE-862) in the post_cg_get_openai_prompts AJAX handler. The handler lacks both capability checks and nonce verification, allowing any authenticated user to call it directly via admin-ajax.php. An attacker with a low-privilege Subscriber account can enumerate and exfiltrate the entire OpenAI prompt history from the wp_postmeta or similar storage table by varying the cg_start pagination parameter. No special preconditions beyond basic WordPress authentication are required. The vulnerability is fixed in version 30.0.7; prior versions are affected.

Affected products

  • Contest Gallery Contest Gallery before 30.0.7

Timeline

  • 2026-07-27: disclosed
  • 2026-08-04: advisory: CVE-2026-16056 published
  • 2026: patched: Fixed in version 30.0.7

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.