CVE-2023-50725 Resque vulnerable to reflected XSS in resque-web failed and queues lists

Medium 6.3 Published Updated

Attackers can execute arbitrary JavaScript in the resque-web interface via reflected XSS in failed and queues lists, potentially stealing user cookies.

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

What is CVE-2023-50725?

CVE-2023-50725 is a medium-severity cross-site scripting vulnerability in resque, published on 22 Dec 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Resque is a Redis-backed Ruby library for creating background jobs, placing them on multiple queues, and processing them later. The following paths in resque-web have been found to be vulnerable to reflected XSS: "/failed/?class=<script>alert(document.cookie)</script>" and "/queues/><img src=a onerror=alert(document.cookie)>". This issue has been patched in version 2.2.1.

Weakness: CWE-79

Which versions are affected by CVE-2023-50725?

2 open source packages ship an affected version, including resque. It affects 1 product.

PackageAffectedFixed in
resque RubyGemsAll versions2.2.1
resque RubyGemsAll versions2.2.1

Products include Resque Resque.

How do I fix CVE-2023-50725?

Upgrade resque to 2.2.1 or later.

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-2023-50725 being exploited?

There is no known exploitation of CVE-2023-50725 in the wild and no public exploit code.

Sources

Also known as GHSA-gc3j-vvwf-4rp8.

Is CVE-2023-50725 in your software?

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

Check your SBOMs for free