Vulnerabilities in pkg:gem/sidekiq-unique-jobs

PACKAGE
Advisory Identifier: GHSA-fhx8-5c23-x7x5
Advisory Summary

CVE-2023-46950 is a MODERATE (CVSS 6.1) cross site scripting vulnerability vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Sidekiq unique jobs libraries in the RubyGems ecosystem. The issue involves cross site scripting vulnerability in contribsys sidekiq. Remediation is available by upgrading affected packages to version 8.0.7, 7.1.33.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/sidekiq-unique-jobs

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/sidekiq-unique-jobs. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-fhx8-5c23-x7x5 CVE-2023-46950 MODERATE Cross Site Scripting vulnerability in Contribsys Sidekiq
GHSA-cmh9-rx85-xj38 CVE-2024-25122 HIGH XSS sidekiq-unique-jobs UI server vulnerability

CVE-2023-46950 at a Glance

CVE Identifier CVE-2023-46950
GHSA Identifier GHSA-fhx8-5c23-x7x5
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Sidekiq unique jobs
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2023-46950

To remediate this vulnerability, upgrade all affected Sidekiq unique jobs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

sidekiq-unique-jobs fixed: 8.0.7
Upgrade sidekiq-unique-jobs to 8.0.7
sidekiq-unique-jobs fixed: 7.1.33
Upgrade sidekiq-unique-jobs to 7.1.33
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for sidekiq-unique-jobs

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-46950, inspect your project dependencies for Sidekiq unique jobs:

inspect dependencies for sidekiq-unique-jobs

Analyze the terminal output to locate any version of Sidekiq unique jobs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.0.7), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Sidekiq unique jobs, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Cross Site Scripting vulnerability in Contribsys Sidekiq v.6.5.8 allows a remote attacker to obtain sensitive information via a crafted URL to the filter functions.

CVE-2023-46950 Affected Sidekiq unique jobs Versions

2 component(s)
Fixed Versions:
8.0.77.1.33
Product / Package Ecosystem Affected Versions Fixed Version
sidekiq-unique-jobs
RubyGems
≥ 8.0.0
< 8.0.7
8.0.7
sidekiq-unique-jobs
RubyGems
< 7.1.33
7.1.33

References

Frequently Asked Questions

What is CVE-2023-46950?
CVE-2023-46950 is a security vulnerability in Sidekiq unique jobs involving Cross Site Scripting vulnerability in Contribsys Sidekiq under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Sidekiq unique jobs versions are affected?
Affected versions include releases prior to 8.0.7, 7.1.33 across affected packages: sidekiq-unique-jobs.
What version fixes CVE-2023-46950?
Upgrading to 8.0.7, 7.1.33 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sidekiq-unique-jobs affected?
Yes, sidekiq-unique-jobs is affected in releases prior to 8.0.7, 7.1.33. Upgrade your dependency to 8.0.7, 7.1.33 or later.
What is the CVSS score of CVE-2023-46950?
CVE-2023-46950 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2023-46950?
CVE-2023-46950 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check RubyGems dependencies for CVE-2023-46950?
Run the dependency tree command: 'inspect dependencies for sidekiq-unique-jobs'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fhx8-5c23-x7x5",
  "modified" : "2025-04-18T18:09:56Z",
  "published" : "2024-03-01T15:31:37Z",
  "aliases" : [ "CVE-2023-46950" ],
  "summary" : "Cross Site Scripting vulnerability in Contribsys Sidekiq ",
  "details" : "Cross Site Scripting vulnerability in Contribsys Sidekiq v.6.5.8 allows a remote attacker to obtain sensitive information via a crafted URL to the filter functions.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "sidekiq-unique-jobs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.0.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "sidekiq-unique-jobs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.1.33"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mhenrixon/sidekiq-unique-jobs/security/advisories/GHSA-cmh9-rx85-xj38"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-46950"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mhenrixon/sidekiq-unique-jobs/pull/829"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mhenrixon/sidekiq-unique-jobs/commit/cd09ba6108f98973b6649a6149790c3d4502b4cc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mhenrixon/sidekiq-unique-jobs/commit/ec3afd920c1b55843c72f748a87baac7f8be82ed"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mhenrixon/sidekiq-unique-jobs"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mhenrixon/sidekiq-unique-jobs/releases/tag/v8.0.7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sidekiq-unique-jobs/CVE-2023-46950.yml"
  }, {
    "type" : "WEB",
    "url" : "https://link.org"
  }, {
    "type" : "WEB",
    "url" : "https://www.link.com"
  }, {
    "type" : "WEB",
    "url" : "https://www.mgm-sp.com/cve/sidekiq-unique-jobs-reflected-xss-cve-2023-46950-cve-2023-46951"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-16T22:28:01Z",
    "nvd_published_at" : "2024-03-01T14:15:53Z"
  }
}