SecurinZero Days
    Email Us
    Zero-Day Research/CVE-2021-33851
    ▲ MediumCVSS 5.4✓ PatchedEPSS 0.02803%

    Stored Cross-Site Scripting in WordPress Customize Login Image

    A cross-site scripting (XSS) attack can cause arbitrary code (JavaScript) to run in a user's browser. The XSS payload given in the "Custom logo link" executes whenever the user opens the Settings Page of the "Customize Login Image" Plugin.

    CVE IDCVE-2021-33851
    CVSS v3.15.4 Medium
    VendorWordPress
    CWECWE-79
    DisclosedDec 2, 2021
    StatusFixed
    All advisories
    • 01Description
    • 02Proof of Concept
    • 03Impact
    • 04Remediation
    • 05Timeline
    • 06References
    01/Description

    What this actually is.

    Technical background, root cause, and affected surface.

    A Cross-Site Scripting (XSS) attack can cause arbitrary code (JavaScript) to run in a user’s browser while the browser is connected to a trusted website. The attack targets your application’s users and not the application itself while using your application as the attack’s vehicle. The XSS payload executes whenever the user opens the login page of the WordPress application..

    Vendor
    WordPress
    Affected Product
    Customize Login Image
    CVE
    CVE-2021-33851
    Securin ID
    2021-CSW-11-1052
    Status
    Fixed
    Date
    December 2, 2021
    Severity
    Medium
    CVSS Score
    5.4
    Vector
    CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    CWE
    CWE-79
    02/Proof of Concept

    From one request
    to root shell.

    Reproduced in a sandboxed environment. Requires only LAN or WiFi adjacency.

    5.4CVSS 3.1
    VectorCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    ScopeChanged
    ImpactC:L / I:L / A:N
    SeverityMedium
    PoC · Exploitation Steps▲ trigger
    01The following vulnerability was discovered in Customize Login Image version 3.4.02Issue: Stored Cross-Site Scripting03Note: A virtual host (wptest.com) is used for testing the application locally.04Figure 01: Customize Login Image Plugin05Figure 02: Entering encoded  XSS payload in the  ‘Custom Logo Link’ field06Figure 03: Injected XSS payload is executed and displays an alert box containing the user’s cookies.
    03/Impact

    What an attacker does to you.

    Post-exploitation outcomes mapped to CVSS impact metrics.

    An attacker can perform the following:

    Medium

    Inject malicious code into the vulnerable variable and exploit the application through the Cross-Site Scripting vulnerability.

    Medium

    Modify the code and get the session information of other users.

    High

    Compromise the user machine.

    04/Remediation

    Fix it. In this order.

    A runbook, not a checklist. Sequence matters — assume compromise before you act.

    01

    Perform context-sensitive encoding of entrusted input before echoing back to a browser using an encoding library throughout the application.

    N/A
    02

    Implement input validation for special characters on all the variables are reflected in the browser and stored in the database.

    N/A
    03

    Explicitly set the character set encoding for each page generated by the webserver.

    N/A
    04

    Encode dynamic output elements and filter specific characters in dynamic elements.

    N/A

    Figure 04: The default Cross-Site Scripting mitigation setting in wp.config file to prevent XSS attacks

    Securin advisory — For coordinated remediation support or threat-actor briefings related to CVE-2021-33851, contact disclose@securin.io
    05/Disclosure Timeline

    Vendors moved in days.
    Attackers in hours.

    Reconstructed from vendor advisories, CISA bulletins, and Securin research records.

    Nov 30, 2021

    Discovered in `Customize Login Image version 3.4 ` Product

    Dec 2, 2021

    Reported to WordPress team

    Dec 7, 2021

    Vendor fixed the issue

    Dec 7, 2021

    Vendor reopened the plugin for download

    Dec 10, 2021

    CVE assigned

    Timeline recorded · Disclosure coordinated by Securin

    06/References

    Cite, verify, go deeper.

    Primary sources — NVD, CISA KEV, and machine-readable IoC feed.

    NVD

    NVD — CVE-2021-33851

    nvd.nist.gov/vuln/detail/CVE-2021-33851 →
    SEC

    Securin VI — Full Technical Analysis

    vi.securin.io →

    Let Securin level up your security posture.

    Get a live exposure assessment, threat-actor briefing tailored to your sector, and IoC mapping for your SIEM.

    Browse all advisories
    SecurinSecurinZero Days

    Securin's zero-day research operation combines frontier AI models with a decade of offensive expertise — discovering, validating, and coordinating the disclosure of high-impact vulnerabilities at a scale and speed no human team achieves alone.

    Glossary
    © 2026 Securin Inc · CVE Numbering Authority
    Privacy Policy·Data Processing Addendum