Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
💎
💎 RubyGems
Not in CISA KEV
MEDIUM severity

CVE-2021-30151 — sidekiq

MEDIUMFix: mperham/sidekiq@64f7033

CVE-2021-30151 is a medium-severity (CVSS 6.1) Cross-site Scripting (XSS) vulnerability in sidekiq. 1 public exploit reference exists, so weaponization risk is real. A fix is available for sidekiq — see the affected versions and patch details below.

Cross-site Scripting in Sidekiq

Also known asGHSA-grh7-935j-hg6w
Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
1 known
Exploitation data as of Oct 4, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
4.2%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs91th percentile — riskier than 91% of all scored CVEsHighest risk
0.00%9.94%19.9%29.8%23.9%4.2%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2021-30151 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 385,386 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

2 pkgs affected
💎sidekiq💎sidekiq

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects RubyGems packages — download data is not available via public APIs for these ecosystems.

Description

Sidekiq through 5.1.3 and 6.x through 6.2.0 allows XSS via the queue name of the live-poll feature when Internet Explorer is used.

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
💎RubyGemssidekiqall versions5.2.0bundle update sidekiq --conservative
💎RubyGemssidekiq≥ 6.0.0&&< 6.2.16.2.1bundle update sidekiq --conservative

Affected Products

2 products · 3 configurations
Application
sidekiqcontribsys
≥ 6.0.0 && ≤ 6.2.0
range
OS
debian linuxdebian
1 version
9.0
Exploits & PoCs
1

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for sidekiq, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update sidekiq to 5.2.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-30151 is resolved across your whole dependency graph.

  3. Workarounds

    Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.

How to detect CVE-2021-30151

A community-maintained Nuclei template exists for this CVE. You can scan for it directly:

nuclei -id cve-2021-30151 -u https://target
Template
Sidekiq <=6.2.0 - Cross-Site Scripting
Severity
medium
Impact
Successful exploitation of this vulnerability could lead to unauthorized access, data theft, or session hijacking.
Remediation
Upgrade to Sidekiq version 6.2.0 or later to mitigate this vulnerability.

Template by ProjectDiscovery nuclei-templates (DhiyaneshDk), MIT licensed. View the full template. Scan only systems you are authorised to test.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate
ProductFixed inAdvisory
Red Hat Satellite 6.11 for RHEL 7tfm-rubygem-sidekiq-0:5.2.10-1.el7satRHSA-2022:5498

Frequently Asked Questions

Sidekiq through 5.1.3 and 6.x through 6.2.0 allows XSS via the queue name of the live-poll feature when Internet Explorer is used.
O3 Security · Impact-Aware SCA

Is CVE-2021-30151 in your dependencies?

Find it across RubyGems, including transitive dependencies.

CVE-2021-30151: sidekiq XSS — Fixed in 5.2.0