CVE-2022-50587 Nagios XI < 5.8.9 Stored XSS via Command Names in Apply Config Error Text
Attackers can inject malicious scripts via command names in configuration errors, allowing arbitrary code execution in victim browsers.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2022-50587?
CVE-2022-50587 is a medium-severity cross-site scripting vulnerability in Nagios Nagios Xi, published on 30 Oct 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Nagios XI versions prior to 5.8.9 are vulnerable to cross-site scripting (XSS) via the Apply Configuration error text. Insufficient validation or escaping of user-supplied input may allow an attacker to inject and execute arbitrary script in the context of a victim's browser.
Weakness: CWE-79
Which versions are affected by CVE-2022-50587?
It affects 1 product.
Products include Nagios Nagios Xi.
How do I fix CVE-2022-50587?
No fix has been published for CVE-2022-50587 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-50587 being exploited?
There is no known exploitation of CVE-2022-50587 in the wild and no public exploit code.
Other vulnerabilities in Nagios Nagios Xi
Sources
Also known as GHSA-x9c7-c9vg-v4gf.