CVE-2024-32887 Reflected XSS in sidekiq

Medium 5.5 Published Updated

Attackers can inject JavaScript into the Sidekiq Web UI via the substr parameter, potentially compromising user accounts 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-32887?

CVE-2024-32887 is a medium-severity cross-site scripting vulnerability in sidekiq, published on 26 Apr 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Sidekiq is simple, efficient background processing for Ruby. Sidekiq is reflected XSS vulnerability. The value of substr parameter is reflected in the response without any encoding, allowing an attacker to inject Javascript code into the response of the application. An attacker could exploit it to target users of the Sidekiq Web UI. Moreover, if other applications are deployed on the same domain or website as Sidekiq, users of those applications could also be affected, leading to a broader scope of compromise. Potentially compromising their accounts, forcing the users to perform sensitive actions, stealing sensitive data, performing CORS attacks, defacement of the web application, etc. This issue has been patched in version 7.2.4.

Weakness: CWE-79

Which versions are affected by CVE-2024-32887?

2 open source packages ship an affected version, including sidekiq.

PackageAffectedFixed in
sidekiq RubyGemsFrom 7.2.07.2.4
sidekiq RubyGemsFrom 7.2.07.2.4

How do I fix CVE-2024-32887?

Upgrade sidekiq to 7.2.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-32887 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-32887 exists.

Sources

Also known as GHSA-q655-3pj8-9fxq.

Is CVE-2024-32887 in your software?

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

Check your SBOMs for free