Intel

AIKIDO-2026-18183

resque is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)GHSA-r23w-h6cg-h95q Published 3 days ago

51

Medium Risk

This Affects:

RUBYresque
0.0.1 - 3.0.1
Fixed in 3.0.2
Are you affected? Scan for Free

TL;DR

The resque-web admin interface renders queue names, worker identifiers, job class names, job payload fields, failed-job details, and Redis keys and values into HTML text nodes and href attributes without escaping them. Anyone able to enqueue a job or register a worker controls these values, so a crafted queue name or payload such as "><svg onload=alert(1)> injects markup that runs when an operator opens the affected page. This stores attacker-controlled script in the dashboard and executes it in the operator's session. The fix escapes these values with h/escape_html before rendering and serves /stats.txt as text/plain.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run the resque-web administrative interface where queue names, worker identifiers, or job payloads can be influenced by untrusted job producers.

Background info

resque is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 3.0.1.

How to fix this

Upgrade the resque library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform