CVE-2025-3862

Contest Gallery <= 26.0.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via id Parameter

Published May 8, 2025 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
Type Values Removed Values Added
Metrics epss

{'score': 0.00044}

epss

{'score': 0.00051}

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
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 8, 2026, 5:12 PM
Reserved
Apr 21, 2025, 6:09 PM
Status
Analyzed
Published
May 8, 2025, 12:15 PM
Modified
Jun 17, 2026, 9:20 AM