CVE-2024-52281 Stored Cross-site Scripting vulnerability in Rancher UI

High 8.9 Published Updated

Attackers can inject malicious scripts via the cluster description field in Rancher UI, potentially compromising user sessions and data.

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
Available

What is CVE-2024-52281?

CVE-2024-52281 is a high-severity cross-site scripting vulnerability in SUSE rancher, published on 16 Apr 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

A: Improper Neutralization of Input During Web Page Generation vulnerability in SUSE rancher allows a malicious actor to perform a Stored XSS attack through the cluster description field. This issue affects rancher: from 2.9.0 before 2.9.4.

Weakness: CWE-79

Which versions are affected by CVE-2024-52281?

3 open source packages ship an affected version, including github.com/rancher/rancher.

PackageAffectedFixed in
github.com/rancher/rancher GoAll versionsNone
github.com/rancher/rancher GoFrom 2.9.02.9.4
github.com/rancher/rancher GoFrom 2.9.02.9.4

How do I fix CVE-2024-52281?

Upgrade github.com/rancher/rancher to 2.9.4 or later.

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-2024-52281 being exploited?

There is no known exploitation of CVE-2024-52281 in the wild and no public exploit code.

Sources

Also known as GHSA-2v2w-8v8c-wcm9, GO-2025-3391.

Is CVE-2024-52281 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free