CVE-2021-47855 Overview
OpenLiteSpeed 1.7.9 contains a stored cross-site scripting (XSS) vulnerability in the dashboard's Notes parameter that allows administrators to inject malicious scripts. Attackers can craft a payload in the Notes field during listener configuration that will execute when an administrator clicks on the Default Icon. This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation).
Critical Impact
Stored XSS in the administrative dashboard enables persistent script injection that executes in the context of authenticated administrator sessions, potentially leading to session hijacking, credential theft, or further administrative actions performed on behalf of the attacker.
Affected Products
- OpenLiteSpeed version 1.7.9
- OpenLiteSpeed Web Server Dashboard
Discovery Timeline
- 2026-01-21 - CVE CVE-2021-47855 published to NVD
- 2026-01-21 - Last updated in NVD database
Technical Details for CVE-2021-47855
Vulnerability Analysis
This stored cross-site scripting vulnerability exists within the OpenLiteSpeed administrative dashboard's listener configuration interface. The Notes parameter fails to properly sanitize user-supplied input before storing and rendering it in the dashboard interface. When an administrator configures a listener and enters content in the Notes field, the application stores this data without adequate input validation or output encoding.
The attack requires the attacker to have some level of administrative access to inject the malicious payload. Once injected, the malicious script persists in the application database and executes whenever another administrator views the listener configuration by clicking on the Default Icon. This creates a persistent attack surface that can compromise multiple administrative sessions over time.
Root Cause
The root cause of this vulnerability is improper input validation and insufficient output encoding in the Notes parameter handling within the OpenLiteSpeed dashboard. The application accepts arbitrary user input in the Notes field and renders it directly in the HTML context without proper sanitization or encoding, allowing JavaScript code to execute in the browser context of viewing administrators.
Attack Vector
The attack vector is network-based, requiring authenticated access to the OpenLiteSpeed administrative dashboard. An attacker with administrative credentials (or compromised admin access) can navigate to the listener configuration section and inject malicious JavaScript code into the Notes field. The payload is stored server-side and triggered when any administrator interacts with the listener configuration by clicking on the Default Icon.
The exploitation flow involves:
- Attacker gains authenticated access to the OpenLiteSpeed dashboard
- Attacker navigates to the listener configuration settings
- Attacker injects malicious JavaScript in the Notes parameter field
- The payload is stored persistently in the application
- When a victim administrator clicks on the Default Icon, the malicious script executes in their browser session
For technical details and proof-of-concept information, refer to Exploit-DB #49727 and the VulnCheck Advisory on OpenLiteSpeed.
Detection Methods for CVE-2021-47855
Indicators of Compromise
- Suspicious JavaScript code or encoded payloads stored in listener Notes fields within the OpenLiteSpeed configuration
- Unexpected network requests originating from administrator browsers to external domains during dashboard access
- Anomalous administrative session activity including unauthorized configuration changes
- Browser console errors or warnings related to cross-origin script execution during dashboard navigation
Detection Strategies
- Implement web application firewall (WAF) rules to detect and block XSS payloads in HTTP POST requests to the dashboard configuration endpoints
- Deploy Content Security Policy (CSP) headers to restrict inline script execution and alert on policy violations
- Monitor audit logs for modifications to listener configuration Notes fields
- Utilize browser-based XSS detection tools during security assessments of the administrative interface
Monitoring Recommendations
- Enable comprehensive logging of all administrative dashboard actions, particularly configuration changes
- Implement real-time alerting for any modifications to listener Notes parameters
- Monitor for outbound network connections from administrator workstations to unexpected external domains
- Conduct periodic security audits of stored configuration data for potentially malicious content
How to Mitigate CVE-2021-47855
Immediate Actions Required
- Upgrade OpenLiteSpeed to the latest available version that addresses this vulnerability
- Review all existing listener configurations and audit Notes fields for suspicious or unexpected content
- Implement strict input validation and output encoding for all user-supplied data in the dashboard
- Apply network segmentation to limit administrative dashboard access to trusted network segments only
Patch Information
Administrators should upgrade to the latest version of OpenLiteSpeed that contains security fixes for this vulnerability. For the latest releases and security updates, visit the OpenLiteSpeed Official Site.
Workarounds
- Restrict administrative dashboard access to a limited set of trusted administrators and enforce strong authentication
- Implement Content Security Policy (CSP) headers that disable inline script execution to mitigate XSS impact
- Conduct regular audits of listener Notes fields and sanitize any existing potentially malicious content
- Consider placing the administrative interface behind a VPN or IP whitelist to reduce attack surface
# Example CSP header configuration for Apache/LiteSpeed
# Add to .htaccess or server configuration
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; object-src 'none'"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.


