CVE-2025-5198 Stackrox: xss in stackrox
Attackers can execute arbitrary scripts in Stackrox UI via malicious Kubernetes Role names, potentially compromising user sessions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-5198?
CVE-2025-5198 is a medium-severity cross-site scripting vulnerability in Red Hat Advanced Cluster Security 4, published on 27 May 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A flaw was found in Stackrox, where it is vulnerable to Cross-site scripting (XSS) if the script code is included in a small subset of table cells. The only known potential exploit is if the script is included in the name of a Kubernetes “Role” object* that is applied to a secured cluster. This object can be used by a user with access to the cluster or through a compromised third-party product.
Weakness: CWE-79
Which versions are affected by CVE-2025-5198?
It affects 2 products.
Products include Redhat Advanced Cluster Security, Stackrox Stackrox.
How do I fix CVE-2025-5198?
No fix has been published for CVE-2025-5198 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-2025-5198 being exploited?
There is no known exploitation of CVE-2025-5198 in the wild and no public exploit code.
Other vulnerabilities in Red Hat Advanced Cluster Security 4
Sources
Also known as GHSA-fcj3-9fc8-9489.