CVE-2023-50727 Resque vulnerable to reflected XSS in Queue Endpoint
Attackers can execute arbitrary JavaScript in the context of other users via a reflected XSS vulnerability in the Resque queue endpoint.
- 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-50727?
CVE-2023-50727 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. Reflected XSS issue occurs when /queues is appended with /"><svg%20onload=alert(domain)>. This issue has been patched in version 2.6.0.
Weakness: CWE-79
Which versions are affected by CVE-2023-50727?
2 open source packages ship an affected version, including resque. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
resque RubyGems | All versions | 2.6.0 |
resque RubyGems | All versions | 2.6.0 |
Products include Resque Resque.
How do I fix CVE-2023-50727?
Upgrade resque to 2.6.0 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-50727 being exploited?
There is no known exploitation of CVE-2023-50727 in the wild and no public exploit code.
Other vulnerabilities in resque
Sources
Also known as GHSA-r9mq-m72x-257g.