Skip to main content
Vulnerability Database/CVE-2025-27304

CVE-2025-27304: Contact Form 7 Star Rating Stored XSS Flaw

CVE-2025-27304 is a stored cross-site scripting vulnerability in Contact Form 7 Star Rating with Font Awesome plugin that enables attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-27304 Overview

CVE-2025-27304 is a stored Cross-Site Scripting (XSS) vulnerability in the themelogger Contact Form 7 Star Rating with Font Awesome WordPress plugin. The flaw affects all plugin versions up to and including 1.3. Attackers with high-privilege access can inject persistent JavaScript payloads that execute in the browser context of any user who loads the affected page. The vulnerability is tracked under CWE-79 for improper neutralization of input during web page generation.

Critical Impact

Stored XSS enables session hijacking, credential theft, and administrative account takeover on WordPress sites running the affected plugin.

Affected Products

  • themelogger Contact Form 7 Star Rating with Font Awesome plugin for WordPress
  • All versions from unspecified initial release through 1.3
  • WordPress installations with the contact-form-7-star-rating-with-font-awersome plugin enabled

Discovery Timeline

  • 2025-02-24 - CVE-2025-27304 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-27304

Vulnerability Analysis

The Contact Form 7 Star Rating with Font Awesome plugin fails to sanitize user-controlled input before rendering it in generated HTML output. An attacker with elevated privileges submits a crafted payload through an input field processed by the plugin. The payload is stored in the WordPress database and reflected on subsequent page loads without proper output encoding.

Stored XSS differs from reflected variants because the malicious content persists across sessions. Any visitor or administrator who loads the affected page executes the injected script in their browser. Attackers commonly leverage this to steal session cookies, perform actions on behalf of authenticated users, or pivot to full administrative compromise.

Exploitation requires high privileges and user interaction, and the scope change indicates the impact extends beyond the vulnerable component to affect other users of the WordPress site.

Root Cause

The root cause is missing or insufficient output encoding when the plugin renders user-supplied data into web pages. Input reaches the HTML rendering context without escaping characters such as <, >, ", and ', allowing script tags and event handlers to break out of the intended data context.

Attack Vector

An authenticated attacker with high privileges submits crafted input containing JavaScript through the plugin's input handling paths. The malicious payload is persisted server-side. When a victim loads the page containing the stored payload, the script executes in the victim's browser under the site's origin. Refer to the Patchstack Vulnerability Report for advisory details.

Detection Methods for CVE-2025-27304

Indicators of Compromise

  • Unexpected <script> tags, javascript: URIs, or event handlers such as onerror= and onload= in plugin-managed content stored in the WordPress database
  • Outbound HTTP requests from browsers loading WordPress pages to attacker-controlled domains referenced in stored payloads
  • Unusual administrative actions performed shortly after an administrator viewed a page containing plugin-rendered content

Detection Strategies

  • Audit the wp_posts, wp_postmeta, and plugin-specific tables for HTML entities and script markup in fields associated with the star rating plugin
  • Deploy a web application firewall (WAF) rule set that inspects POST parameters submitted to plugin endpoints for XSS signatures
  • Enable Content Security Policy (CSP) reporting to surface violations from unexpected inline script execution

Monitoring Recommendations

  • Log and review all administrative account activity, focusing on session cookie access and privilege changes
  • Monitor WordPress plugin version inventories to identify sites still running contact-form-7-star-rating-with-font-awersome version 1.3 or earlier
  • Correlate browser-side CSP violation reports with server-side access logs to identify exploitation attempts

How to Mitigate CVE-2025-27304

Immediate Actions Required

  • Identify WordPress instances with the Contact Form 7 Star Rating with Font Awesome plugin installed and document the running version
  • Deactivate and remove the plugin if a patched release is not yet available, as no fixed version is listed in the advisory
  • Rotate WordPress administrator passwords and invalidate active sessions if exploitation is suspected

Patch Information

The advisory lists affected versions from n/a through <= 1.3 without a confirmed fixed release at the time of publication. Consult the Patchstack Vulnerability Report for updates on a patched release from themelogger.

Workarounds

  • Restrict high-privilege WordPress accounts and enforce multi-factor authentication to limit who can trigger the stored injection
  • Deploy a WAF or virtual patching solution that blocks XSS payloads submitted to plugin endpoints
  • Apply a strict Content Security Policy that disallows inline scripts and restricts script sources to trusted origins
  • Remove the plugin entirely and replace it with an actively maintained alternative if a vendor patch is not released

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.