CVE-2021-38156 — Nagios Xi
MEDIUMCVE-2021-38156 is a medium-severity (CVSS 5.4) Cross-site Scripting (XSS) vulnerability in nagios nagios xi. 1 public exploit or proof-of-concept reference is indexed, so weaponization risk is real. A fix is available — see the affected versions and patch details below.
In Nagios XI before 5.8.6, XSS exists in the dashboard page (/dashboards/#) when administrative users attempt to edit a dashboard.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Description
In Nagios XI before 5.8.6, XSS exists in the dashboard page (/dashboards/#) when administrative users attempt to edit a dashboard.
Affected Products
nagios xinagiosResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Vendor / applianceDetect
Inventory every nagios nagios xi deployment and check each version against the affected-products list above.
Fix
Apply the nagios nagios xi security patch or hotfix for CVE-2021-38156 on the affected version, following the vendor advisory for your exact build.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page. Alongside that, restrict the management interface to trusted networks and apply the vendor's recommended configuration mitigations.
How to detect CVE-2021-38156
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2021-38156 -u https://target- Template
- Nagios XI < 5.8.6 - Cross-Site Scripting
- Severity
- medium
- Impact
- Authenticated attackers can inject malicious JavaScript via XSS in the dashboard title field, potentially stealing administrator session cookies or performing administrative actions.
- Remediation
- Upgrade to Nagios XI version 5.8.6 or later.
Template by ProjectDiscovery nuclei-templates (ritikchaddha), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2021-38156 being exploited in your environment?
Detect and block the exploit chain at execution, on systems you cannot patch yet.