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

CVE-2025-46477: WP Customize Login Page XSS Vulnerability

CVE-2025-46477 is a stored cross-site scripting flaw in WP Customize Login Page plugin that allows attackers to inject malicious scripts. This article covers the technical details, affected versions up to 1.6.5, 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-46477 Overview

CVE-2025-46477 is a stored Cross-Site Scripting (XSS) vulnerability in the WP Customize Login Page WordPress plugin developed by Carlo La Pera. The flaw affects all plugin versions up to and including 1.6.5. An authenticated attacker with high privileges can inject malicious JavaScript that persists in the plugin's stored configuration and executes in the browsers of other users who view affected pages.

The vulnerability is tracked under CWE-79: Improper Neutralization of Input During Web Page Generation. Successful exploitation can lead to session theft, administrative action abuse, and client-side redirection to attacker-controlled infrastructure.

Critical Impact

Stored JavaScript payloads injected through the plugin execute within authenticated administrator sessions, enabling account takeover and persistent WordPress backdoors.

Affected Products

  • WP Customize Login Page plugin for WordPress
  • Versions from n/a through 1.6.5
  • WordPress sites with the plugin installed and active

Discovery Timeline

  • 2025-04-24 - CVE-2025-46477 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-46477

Vulnerability Analysis

The WP Customize Login Page plugin allows site administrators to customize the WordPress login screen. The plugin accepts configuration input through its settings interface and renders that input into generated HTML without applying proper output encoding or sanitization. Because the payload is stored in the database, every subsequent page render reintroduces the malicious script into the response.

The stored nature of the flaw makes it more impactful than reflected XSS. The payload persists until an administrator manually removes it. Any user visiting a page that renders the stored value executes the attacker's JavaScript in the context of the WordPress origin.

Root Cause

The plugin fails to neutralize special characters in user-supplied input before writing it to the database or echoing it back into HTML output. WordPress provides sanitization helpers such as sanitize_text_field(), wp_kses(), and output-escaping functions like esc_html() and esc_attr(). The affected code path omits these controls on fields that accept administrator-controlled content.

Attack Vector

Exploitation requires network access to the WordPress admin interface and valid credentials with high privileges, such as an administrator account. The attacker submits a payload containing HTML or JavaScript through the plugin's settings form. User interaction is required: a victim must load a page that renders the injected content. Because the scope is changed, the executing script runs with the privileges of the viewing user's session.

See the Patchstack advisory for WP Customize Login Page for additional technical details.

Detection Methods for CVE-2025-46477

Indicators of Compromise

  • Unexpected <script>, <iframe>, or event-handler attributes (onload, onerror) stored in WordPress wp_options entries related to the plugin.
  • Outbound HTTP requests from administrator browsers to unfamiliar domains when visiting login or admin pages.
  • Creation of new administrator accounts or modification of user roles shortly after an admin session.

Detection Strategies

  • Audit the wp_options table for plugin configuration rows containing HTML tags or JavaScript keywords.
  • Monitor WordPress access logs for POST requests to the plugin's settings endpoints from unexpected IP addresses or user agents.
  • Use a web application firewall (WAF) with XSS signatures to flag payloads containing script tags submitted to admin forms.

Monitoring Recommendations

  • Enable WordPress audit logging to track changes to plugin settings and administrator account activity.
  • Alert on anomalous administrator sessions, including logins from new geolocations or at unusual hours.
  • Review browser Content Security Policy (CSP) violation reports for script-source blocks originating from admin pages.

How to Mitigate CVE-2025-46477

Immediate Actions Required

  • Deactivate the WP Customize Login Page plugin until a patched release is confirmed and installed.
  • Rotate credentials for all administrator accounts and invalidate active WordPress sessions.
  • Review plugin settings for stored malicious payloads and clear any suspicious values.

Patch Information

At the time of publication, the vendor advisory lists all versions through 1.6.5 as affected. Site operators should monitor the Patchstack advisory and the WordPress plugin repository for a fixed release and apply it as soon as it becomes available.

Workarounds

  • Restrict administrator access to the WordPress dashboard using IP allowlisting or VPN gating.
  • Enforce multi-factor authentication (MFA) for all WordPress accounts with elevated privileges.
  • Deploy a Content Security Policy that blocks inline scripts and unauthorized external script sources on admin pages.
  • Replace the plugin with a maintained alternative if the vendor does not publish a timely patch.
bash
# Disable the vulnerable plugin via WP-CLI
wp plugin deactivate wp-customize-login-page
wp plugin delete wp-customize-login-page

# Invalidate all existing user sessions
wp user session destroy --all --all-users

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.