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

CVE-2025-28914: WordPress Login Form Stored XSS Vulnerability

CVE-2025-28914 is a stored cross-site scripting vulnerability in the WordPress Login Form to Anywhere 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-28914 Overview

CVE-2025-28914 is a stored Cross-Site Scripting (XSS) vulnerability [CWE-79] in the Ajay Sharma wordpress login form to anywhere plugin (wp-show-login-form) for WordPress. The flaw affects all plugin versions up to and including 0.2. It stems from improper neutralization of user-supplied input during web page generation, allowing an authenticated attacker with high privileges to inject persistent JavaScript payloads. Execution requires victim interaction, and the resulting script runs in the browser context of other users visiting the affected page.

Critical Impact

Stored XSS enables persistent script execution in authenticated user sessions, with scope change extending impact beyond the vulnerable component to other site resources.

Affected Products

  • Ajay Sharma wordpress login form to anywhere plugin
  • Plugin slug: wp-show-login-form
  • Versions: n/a through <= 0.2

Discovery Timeline

  • 2025-03-11 - CVE-2025-28914 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-28914

Vulnerability Analysis

The vulnerability is a stored Cross-Site Scripting flaw in the wp-show-login-form plugin. The plugin fails to sanitize or escape input values before rendering them in generated HTML output. An attacker with elevated privileges can submit crafted input containing JavaScript that is then persisted by the plugin. When another user loads the affected page, the browser parses and executes the injected script.

The CVSS vector indicates a scope change, meaning the injected code can affect resources beyond the vulnerable component itself. Impact to confidentiality, integrity, and availability is rated low, consistent with typical browser-executed script payloads such as session theft, DOM manipulation, or forced actions against the current user.

Root Cause

The root cause is missing output encoding and insufficient input validation within the plugin's form rendering logic. User-controlled data flows into HTML context without being passed through WordPress sanitization helpers such as esc_html(), esc_attr(), or wp_kses(). This violates the output-escaping model that WordPress recommends for all plugin-generated markup.

Attack Vector

Exploitation requires network access to the WordPress site, high privileges to submit the malicious payload, and user interaction to trigger execution. A high-privilege account stores a payload containing script content through the plugin's input surface. When a victim loads a page that renders this stored content, the injected JavaScript executes in the victim's browser session, inheriting their cookies and site context.

No verified public exploit code is available for CVE-2025-28914. See the Patchstack Security Advisory for additional technical details.

Detection Methods for CVE-2025-28914

Indicators of Compromise

  • Unexpected <script>, <iframe>, or event-handler attributes (onerror, onload) stored in plugin-related database rows or wp_options entries
  • Outbound browser requests from authenticated administrator sessions to unknown third-party domains following page loads involving the plugin
  • New or modified WordPress user accounts created shortly after an administrator visited a page rendering plugin content

Detection Strategies

  • Audit the WordPress database for stored HTML or JavaScript content in fields managed by the wp-show-login-form plugin
  • Deploy a Web Application Firewall (WAF) rule set that inspects authenticated POST requests to WordPress admin endpoints for XSS payload patterns
  • Review web server access logs for requests to plugin administration pages followed by anomalous session activity

Monitoring Recommendations

  • Enable WordPress audit logging for plugin configuration changes and content updates attributed to privileged accounts
  • Monitor browser Content Security Policy (CSP) violation reports for inline-script execution on pages generated by the plugin
  • Alert on administrator account activity originating from unusual IP addresses or user agents

How to Mitigate CVE-2025-28914

Immediate Actions Required

  • Deactivate and remove the wp-show-login-form plugin until a patched release is confirmed available
  • Rotate credentials for all WordPress administrator and editor accounts that may have accessed pages rendering plugin output
  • Review database content stored by the plugin and remove any entries containing script tags or JavaScript event handlers

Patch Information

At the time of the referenced advisory, no fixed version is identified; all versions up to and including 0.2 are affected. Consult the Patchstack Security Advisory for updates on patch availability.

Workarounds

  • Remove the plugin and replace it with an actively maintained WordPress login form alternative
  • Enforce a restrictive Content Security Policy that disallows inline scripts and unknown external script sources
  • Restrict high-privilege WordPress accounts to a minimum set of trusted administrators and require multi-factor authentication
bash
# Disable the vulnerable plugin via WP-CLI
wp plugin deactivate wp-show-login-form
wp plugin delete wp-show-login-form

# Apply a baseline Content Security Policy via web server headers (nginx example)
# add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; frame-ancestors 'self';" always;

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.