Skip to main content

CVE-2025-4591: Weluka Lite WordPress Plugin XSS Vulnerability

CVE-2025-4591 is a stored XSS vulnerability in the Weluka Lite WordPress plugin affecting versions up to 1.0.3. Attackers with contributor access can inject malicious scripts via the weluka-map shortcode. This article covers technical details, affected versions, impact assessment, 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-2025-4591 Overview

CVE-2025-4591 is a Stored Cross-Site Scripting (XSS) vulnerability affecting the Weluka Lite plugin for WordPress. The flaw resides in the plugin's weluka-map shortcode, which fails to sanitize user-supplied attributes and escape output properly. All versions up to and including 1.0.3 are affected. Authenticated users with contributor-level access or higher can inject arbitrary JavaScript that executes in the browsers of visitors who view the affected page. The weakness is tracked under CWE-79.

Critical Impact

Contributor-level attackers can store malicious scripts that execute against site visitors and administrators, enabling session theft, account takeover, and redirection to malicious infrastructure.

Affected Products

  • Weluka Lite plugin for WordPress — versions <= 1.0.3
  • Vulnerable component: weluka-map shortcode handler in class-weluka-builder.php
  • WordPress sites allowing contributor-or-higher account registration

Discovery Timeline

  • 2025-05-15 - CVE-2025-4591 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-4591

Vulnerability Analysis

The Weluka Lite plugin registers a weluka-map shortcode used to embed map elements into WordPress pages. The shortcode handler accepts attributes from the user and renders them directly into page HTML. Because the plugin neither sanitizes input nor escapes output, attacker-controlled attribute values pass through into the rendered DOM.

An authenticated contributor can craft a post containing the shortcode with malicious attribute values. When an administrator or visitor loads the resulting page, the browser parses the injected markup and executes the attacker's JavaScript in the site's origin. The attack has an EPSS probability of 0.231% as of 2026-10-06.

Root Cause

The root cause is missing input sanitization and output escaping on shortcode attributes within the weluka-map handler, located in class-weluka-builder.php. WordPress exposes helper functions such as sanitize_text_field() and esc_attr() for exactly this purpose, but the vulnerable code path omits them. See the WordPress Plugin Code Review for the specific source location.

Attack Vector

Exploitation requires an authenticated session with contributor-level privileges. The attacker inserts the weluka-map shortcode into a post or page draft, embedding JavaScript payloads inside one of the accepted attributes. Once the post is published or previewed by an administrator, the injected script executes in the viewer's browser context. This enables cookie theft, administrative action forgery, and redirection to attacker-controlled sites. Refer to the Wordfence Vulnerability Analysis for additional technical context.

Detection Methods for CVE-2025-4591

Indicators of Compromise

  • Posts or pages containing [weluka-map ...] shortcodes with attribute values embedding <script>, onerror=, onload=, or javascript: strings
  • Unexpected outbound requests from administrator browsers to unfamiliar domains after loading posts authored by contributors
  • New administrator accounts or modified user roles following administrator page views

Detection Strategies

  • Query the wp_posts table for post_content matching weluka-map combined with script-like tokens
  • Review audit logs for contributor accounts creating or editing posts that embed shortcodes
  • Enable Content Security Policy reporting to capture inline script violations originating from WordPress pages

Monitoring Recommendations

  • Monitor WordPress role changes and new user creation events in real time
  • Alert on contributor accounts publishing posts that include shortcode attributes with HTML control characters
  • Correlate web server access logs with administrator session activity to identify suspicious script-triggered requests

How to Mitigate CVE-2025-4591

Immediate Actions Required

  • Deactivate the Weluka Lite plugin until a patched version is confirmed installed
  • Audit all existing posts and pages for weluka-map shortcodes authored by non-administrator users
  • Reduce contributor privileges or disable open registration where feasible
  • Rotate administrator credentials if any suspicious shortcode usage is identified

Patch Information

At the time of publication, no patched version is referenced in the available advisories for versions beyond 1.0.3. Site operators should monitor the Wordfence Vulnerability Analysis and the plugin's WordPress.org listing for an official fix, then upgrade immediately once released.

Workarounds

  • Remove or disable the Weluka Lite plugin entirely until a patched release is available
  • Restrict the unfiltered_html and shortcode-authoring capabilities for contributor and author roles
  • Deploy a web application firewall rule blocking shortcode attributes that contain HTML tags or javascript: URIs
  • Enforce a strict Content Security Policy that disallows inline scripts site-wide
bash
# Configuration example: disable the plugin via WP-CLI
wp plugin deactivate weluka-lite
wp plugin delete weluka-lite

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.