Skip to main content

CVE-2025-5123: Contact People WordPress Plugin XSS Vulnerability

CVE-2025-5123 is a stored XSS vulnerability in the Contact Us Page – Contact People WordPress plugin allowing authenticated 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-5123 Overview

CVE-2025-5123 is a stored Cross-Site Scripting (XSS) vulnerability in the Contact Us Page – Contact People plugin for WordPress, developed by A3rev. The flaw affects all versions up to and including 3.7.4 and stems from insufficient input sanitization and output escaping on the style parameter. Authenticated users with Contributor-level access or higher can inject arbitrary web scripts into pages. Those scripts execute in the browser of any user who later views the affected page. The vulnerability is tracked under CWE-79: Improper Neutralization of Input During Web Page Generation.

Critical Impact

Authenticated Contributor-level attackers can inject persistent JavaScript that executes against site visitors and administrators, enabling session theft, redirection, and administrative account takeover.

Affected Products

  • A3rev Contact Us Page – Contact People plugin for WordPress
  • All plugin versions up to and including 3.7.4
  • WordPress sites allowing Contributor-level or higher user registration

Discovery Timeline

  • 2025-06-13 - CVE-2025-5123 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-5123

Vulnerability Analysis

The vulnerability lives in the plugin's people-contact rendering logic, specifically around the handling of the style parameter inside classes/class-people-contact.php. User-controlled input passed through this parameter is written into rendered output without adequate sanitization or escaping. Because the injected payload is persisted in the WordPress database, any subsequent page view triggers execution in the victim's browser context.

The attacker must authenticate as a Contributor or higher, which lowers the bar significantly on sites that permit open registration or operate editorial workflows with external contributors. Successful exploitation requires a victim to load the affected page, satisfying the user interaction requirement. Because the scripted scope changes (S:C), the injected code can affect resources beyond the vulnerable component, including the WordPress administrative session of an authenticated reviewer.

Root Cause

The root cause is missing input sanitization on write and missing output escaping on render for the style parameter. WordPress exposes helpers such as sanitize_text_field(), wp_kses(), and esc_attr() for exactly this scenario, but the vulnerable code path does not apply them before concatenating attacker-controlled values into HTML attributes.

Attack Vector

An attacker with Contributor privileges submits a crafted style parameter containing JavaScript, for example an attribute-breaking payload that introduces an onerror or onload handler. The payload is stored and subsequently rendered on any page using the plugin's contact-person shortcode or block. When an editor, administrator, or site visitor loads the page, the browser parses and executes the injected script with the privileges of that user session.

For technical context, see the WordPress Plugin Code Review on Trac and the Wordfence Vulnerability Analysis.

Detection Methods for CVE-2025-5123

Indicators of Compromise

  • Posts, pages, or plugin metadata containing style attribute values with inline JavaScript handlers such as onerror=, onload=, or javascript: URIs.
  • Unexpected <script> tags or encoded script payloads stored in wp_postmeta or plugin option tables referencing contact-person entries.
  • Outbound requests from visitor browsers to attacker-controlled domains originating from pages that render the plugin shortcode.

Detection Strategies

  • Audit the WordPress database for plugin-related rows containing suspicious characters in style fields, including angle brackets, backticks, and event handler keywords.
  • Review Contributor and Author account activity for recently created or edited contact-person entries that correspond with the vulnerable release window.
  • Enable Content Security Policy (CSP) reporting to surface inline-script violations originating from plugin-rendered pages.

Monitoring Recommendations

  • Monitor WordPress audit logs for post_meta and plugin option changes performed by non-administrator roles.
  • Alert on new or unusual outbound DNS requests from browsers served by the WordPress site, which can indicate exfiltration via injected XSS.
  • Track plugin version inventory across managed WordPress properties to confirm all installations are above 3.7.4 once a patched release is published.

How to Mitigate CVE-2025-5123

Immediate Actions Required

  • Update the Contact Us Page – Contact People plugin to the latest available version beyond 3.7.4 as soon as the vendor publishes a fix.
  • Review and revoke unnecessary Contributor, Author, and Editor accounts, particularly those created during the affected version window.
  • Scan all pages, posts, and plugin configuration entries for existing malicious style payloads and remove them.

Patch Information

At the time of publication, consult the Contact Us Plugin Developer Info page and the Wordfence Vulnerability Analysis for the latest fixed version and changelog details. Apply the vendor patch through the WordPress plugin updater as soon as it becomes available.

Workarounds

  • Temporarily deactivate the Contact Us Page – Contact People plugin until a patched version is installed.
  • Restrict user registration and downgrade untrusted Contributor accounts to Subscriber role to remove write access to post content.
  • Deploy a Web Application Firewall (WAF) rule that blocks requests containing script fragments or event-handler attributes in the style parameter.
  • Enforce a strict Content Security Policy that disallows inline scripts on pages that render the plugin's shortcodes.
bash
# Example WordPress CLI commands to inventory and disable the vulnerable plugin
wp plugin list --name=contact-us-page-contact-people --fields=name,status,version
wp plugin deactivate contact-us-page-contact-people
wp user list --role=contributor --fields=ID,user_login,user_registered

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.