CVE-2021-30151 Cross-site Scripting in Sidekiq

Medium 6.1 Published Updated

An attacker can execute arbitrary scripts in the context of other users via the queue name in the live-poll feature.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-30151?

CVE-2021-30151 is a medium-severity cross-site scripting vulnerability in Debian Debian Linux, published on 6 Apr 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-79

Which versions are affected by CVE-2021-30151?

4 open source packages ship an affected version, including sidekiq. It affects 2 products.

PackageAffectedFixed in
sidekiq RubyGemsAll versions5.2.0
sidekiq RubyGemsAll versions5.2.0
sidekiq RubyGemsFrom 6.0.06.2.1
sidekiq RubyGemsFrom 6.0.06.2.1

Products include Contribsys Sidekiq, Debian Debian Linux.

How do I fix CVE-2021-30151?

Upgrade sidekiq to a fixed version for your release line: 5.2.0 or 6.2.1.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2021-30151 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-30151 exists.

Public exploit code: 1 Nuclei template.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-30151, GHSA-grh7-935j-hg6w, UBUNTU-CVE-2021-30151.

Is CVE-2021-30151 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free