Description
Contest Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the ‘id’ parameter in all versions up to, and including, 26.0.6 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Published: 2025-05-08
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored cross-site scripting that permits authenticated Contributor-level attackers to inject arbitrary JavaScript into gallery pages, leading to possible defacement, data theft, or session hijacking.
Action: Patch
AI Analysis

Impact

Contest Gallery for WordPress allows stored XSS via the 'id' parameter in the cg_entry_on_off.php file. In all versions up to 26.0.6, the application does not sanitize or escape this input, enabling an authenticated user with Contributor or higher role to inject malicious scripts that execute in the context of any visitor to the affected page. The CWEs associated with this flaw is CWE‑79, marking it as an input validation weakness that can lead to cross‑site scripting and potential exploitation of user accounts visiting the site.

Affected Systems

The vulnerability affects the Contest Gallery plugin (contest-gallery: Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe). All releases through version 26.0.6, including WordPress builds that incorporate the plugin from the official repository, are impacted.

Risk and Exploitability

This flaw carries a CVSS score of 6.4, indicating a moderate severity. The EPSS score is reported as <1%, suggesting that the likelihood of exploitation is low at present, and it is not listed in the CISA KEV catalog. However, because the flaw requires only Contributor‑level or higher authentication and the vulnerable code is part of a public shortcode, a determined attacker can abuse the CVE by first creating a contributor account or escalating privileges, then using the id parameter to store malicious JavaScript that will run whenever any visitor loads the page.

Generated by OpenCVE AI on April 21, 2026 at 20:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Contest Gallery to the latest version (26.0.7 or newer) where the id parameter is properly sanitized and output is escaped.
  • If an immediate update is not feasible, remove or disable the vulnerable cg_entry_on_off.php shortcode or block, or otherwise block the id parameter from accepting user input.
  • Revoke Contributor‑level privileges from users that are not required to manage gallery entries, or replace the role with a custom role that has no access to the affected editor screens. Additionally, apply a web‑application firewall that filters out inline scripts.

Generated by OpenCVE AI on April 21, 2026 at 20:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2025-13998 Contest Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the ‘id’ parameter in all versions up to, and including, 26.0.6 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
History

Tue, 15 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.00044}

epss

{'score': 0.00051}


Wed, 04 Jun 2025 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Contest-gallery
Contest-gallery contest Gallery
CPEs cpe:2.3:a:contest-gallery:contest_gallery:*:*:*:*:*:wordpress:*:*
Vendors & Products Contest-gallery
Contest-gallery contest Gallery

Thu, 08 May 2025 14:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 08 May 2025 11:30:00 +0000

Type Values Removed Values Added
Description Contest Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the ‘id’ parameter in all versions up to, and including, 26.0.6 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Title Contest Gallery <= 26.0.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via id Parameter
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

Contest-gallery Contest Gallery
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-08T17:12:30.598Z

Reserved: 2025-04-21T18:09:27.987Z

Link: CVE-2025-3862

cve-icon Vulnrichment

Updated: 2025-05-08T13:36:15.820Z

cve-icon NVD

Status : Analyzed

Published: 2025-05-08T12:15:18.030

Modified: 2025-06-04T22:57:04.867

Link: CVE-2025-3862

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-21T21:00:36Z

Weaknesses