Skip to main content
Vulnerability Database/CVE-2024-13736

CVE-2024-13736: Pure Chat WordPress Plugin XSS Vulnerability

CVE-2024-13736 is a stored XSS vulnerability in the Pure Chat WordPress plugin allowing unauthenticated attackers to inject malicious scripts. This article covers technical details, affected versions, security impact, and mitigation strategies.

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-2024-13736 Overview

CVE-2024-13736 is a Stored Cross-Site Scripting (XSS) vulnerability [CWE-79] in the Pure Chat – Live Chat & More! plugin for WordPress. The flaw affects all versions up to and including 2.4. It exists in the purechatWidgetName parameter due to insufficient input sanitization and output escaping. Unauthenticated attackers can inject arbitrary JavaScript that executes when a user visits an affected page.

Critical Impact

Unauthenticated attackers can inject persistent JavaScript payloads that execute in the browser context of any visitor, enabling session theft, redirection, and defacement.

Affected Products

  • Purechat Pure Chat WordPress plugin, all versions through 2.4
  • WordPress sites with the pure-chat plugin activated
  • Any site rendering user-influenced content via the vulnerable purechatWidgetName parameter

Discovery Timeline

  • 2025-02-19 - CVE-2024-13736 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-13736

Vulnerability Analysis

The vulnerability is a stored XSS issue in the Pure Chat plugin's handling of the purechatWidgetName parameter. The plugin persists attacker-supplied input and later renders it into the page HTML without adequate sanitization or escaping. Because the injected payload is stored server-side, every visitor to a rendered page triggers execution of the malicious script.

Attack complexity is low and no authentication is required. User interaction is limited to visiting the affected page. The scope change reflects that scripts executing under the site's origin can affect resources beyond the vulnerable component, including authenticated administrator sessions.

Root Cause

The root cause is missing input sanitization on write and missing output escaping on render for the purechatWidgetName value. The plugin trusts the parameter value and inserts it into HTML context, violating the WordPress guidance to escape late using functions such as esc_attr() or esc_html(). Reference the vulnerable code locations at purechat.php line 99 and purechat.php line 149.

Attack Vector

An unauthenticated attacker submits a crafted purechatWidgetName value containing HTML or JavaScript. The plugin stores the payload and reflects it into the WordPress page output. When an administrator or visitor loads the page, the browser executes the injected script under the site's origin. Typical outcomes include cookie theft, admin session hijacking, forced redirection to attacker infrastructure, and drive-by malware delivery.

No verified public exploit code is available for this issue. See the Wordfence Vulnerability Report for additional technical context.

Detection Methods for CVE-2024-13736

Indicators of Compromise

  • Presence of <script>, onerror=, onload=, or javascript: sequences stored in options, postmeta, or plugin settings related to purechatWidgetName
  • Unexpected outbound requests from visitor browsers to attacker-controlled domains after loading pages that render the Pure Chat widget
  • New or modified WordPress administrator accounts following visits by privileged users to affected pages

Detection Strategies

  • Inventory WordPress installations and flag any site running pure-chat version 2.4 or earlier
  • Search the wp_options and wp_postmeta tables for the purechatWidgetName key containing HTML tags or JavaScript syntax
  • Deploy web application firewall rules that block request bodies containing script fragments targeting the purechatWidgetName parameter

Monitoring Recommendations

  • Enable Content Security Policy (CSP) reporting to capture script-src violations originating from injected payloads
  • Log and alert on WordPress admin session anomalies such as new sessions from unfamiliar IP addresses or user agents
  • Monitor outbound DNS and HTTP traffic from web servers and administrator endpoints for connections to newly observed domains referenced in stored payloads

How to Mitigate CVE-2024-13736

Immediate Actions Required

  • Update the Pure Chat plugin to a version later than 2.4 that contains the vendor fix
  • Audit stored plugin configuration values for injected HTML or JavaScript and remove any malicious content
  • Rotate WordPress administrator passwords and invalidate active sessions if compromise is suspected

Patch Information

The vendor addressed the issue in changesets tracked on WordPress.org. Review the fix commits at changeset 3243536 and changeset 3245968. Confirm current versions via the Pure Chat plugin developer page.

Workarounds

  • Deactivate and remove the Pure Chat plugin until the patched version can be installed
  • Deploy a web application firewall rule that filters HTML metacharacters submitted to purechatWidgetName
  • Enforce a strict Content Security Policy that disallows inline scripts and untrusted script sources on WordPress pages
bash
# Example WordPress WP-CLI commands to identify and remediate exposure
wp plugin list --name=pure-chat --fields=name,status,version
wp plugin update pure-chat
# If patch not yet available, deactivate the plugin
wp plugin deactivate pure-chat
# Search options table for injected payloads
wp db query "SELECT option_id, option_name FROM wp_options WHERE option_value LIKE '%<script%' OR option_value LIKE '%purechatWidgetName%';"

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.