CVE-2026-10100
Description
The Simple Custom Login Page plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the color settings fields (Page Background, Form Background, Text Color, Link Color) in versions up to and including 1.0.3. This is due to insufficient input sanitization of the color option values (they were registered with register_setting() and stored via the Settings API/update_option() with no sanitize_callback) combined with the values being output into a block on wp-login.php using esc_attr(), which is incorrect for a CSS context (it does not escape ;, {, }, / or *). This makes it possible for authenticated attackers, with administrator-level access and above, to inject arbitrary CSS rules into the login page that are rendered for all unauthenticated visitors, enabling UI-redress and credential-phishing attacks.
Affected products
1- Range: <=1.0.3
Patches
0No patches discovered yet.
Vulnerability mechanics
Root cause
"The plugin fails to properly sanitize color option values before outputting them into a CSS context."
Attack vector
An authenticated attacker with administrator privileges can inject arbitrary CSS rules by providing malicious input into the color settings fields, such as Page Background, Form Background, Text Color, or Link Color. These settings are registered using `register_setting()` without a `sanitize_callback` and stored via the Settings API. The values are then output into a `<style>` block on `wp-login.php` using `esc_attr()`, which does not escape characters critical for CSS, such as ';', '{', '}', '/', or '*'. This allows the injection of CSS that is rendered for all unauthenticated visitors.
Affected code
The vulnerability lies within the `Simple_Custom_Login_Page` class, specifically in the `simple_custom_login_page_customize()` method where options like `simple_custom_login_page_background`, `simple_custom_login_page_text_color`, `simple_custom_login_page_form_bg`, and `simple_custom_login_page_link_color` are retrieved using `get_option()` and output. The settings are registered in `Simple_Custom_Login_Page_Admin` class's `simple_custom_login_page_settings()` method without a `sanitize_callback`.
What the fix does
The patch is not provided in the bundle. The advisory indicates that the vulnerability is due to insufficient input sanitization of color option values. Remediation guidance would typically involve implementing proper sanitization for these values before they are stored and output, ensuring that only valid CSS color values are accepted and that potentially harmful characters are escaped or removed.
Preconditions
- authAttacker must have administrator-level access or above.
- inputAttacker must be able to modify plugin settings for color options.
Generated on Jun 2, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
3- plugins.trac.wordpress.org/browser/simple-custom-login-page/tags/1.0.3/admin/class-simple-custom-login-page-admin.phpnvd
- plugins.trac.wordpress.org/browser/simple-custom-login-page/tags/1.0.3/includes/class-simple-custom-login-page.phpnvd
- www.wordfence.com/threat-intel/vulnerabilities/id/96d03984-623a-44c7-a46f-e1aabbc566d5nvd
News mentions
0No linked articles in our index yet.