CVE-2023-50725: Resque Cross-Site Scripting Vulnerability
MODERATECVE-2023-50725 is a MODERATE (CVSS 6.3) cross-site scripting vulnerability (CWE-233: Improper Handling of Parameters) affecting Resque libraries in the RubyGems ecosystem. The issue involves resque vulnerable to reflected xss in resque-web failed and queues lists. Remediation is available by upgrading affected packages to version 2.2.1.
CVE-2023-50725 at a Glance
Security Impact
CVSS: 6.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N).
How to Fix CVE-2023-50725
To remediate this vulnerability, upgrade all affected Resque dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade resque to 2.2.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for resque
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-50725, inspect your project dependencies for Resque:
inspect dependencies for resque
Analyze the terminal output to locate any version of Resque in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-233: Improper Handling of Parameters, where the product does not properly handle when the expected number of parameters, fields, or arguments is not provided in input, or if those parameters are undefined. In Resque, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-50725 Affected Resque Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
resque
|
RubyGems |
< 2.2.1
|
2.2.1
|
References
Frequently Asked Questions
What is CVE-2023-50725?
Which Resque versions are affected?
What version fixes CVE-2023-50725?
Is resque affected?
What is the CVSS score of CVE-2023-50725?
What CWE is associated with CVE-2023-50725?
How can I check RubyGems dependencies for CVE-2023-50725?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gc3j-vvwf-4rp8",
"modified" : "2023-12-22T22:26:56Z",
"published" : "2023-12-18T19:34:06Z",
"aliases" : [ "CVE-2023-50725" ],
"summary" : "Resque vulnerable to reflected XSS in resque-web failed and queues lists",
"details" : "### Impact\n\nThe following paths in resque-web have been found to be vulnerable to reflected XSS:\n\n```\n/failed/?class=<script>alert(document.cookie)</script>\n/queues/><img src=a onerror=alert(document.cookie)>\n```\n\n### Patches\n\nv2.2.1\n\n### Workarounds\n\nNo known workarounds at this time. It is recommended to not click on 3rd party or untrusted links to the resque-web interface until you have patched your application.\n\n### References\n\nhttps://github.com/resque/resque/pull/1790\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "resque"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.2.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/resque/resque/security/advisories/GHSA-gc3j-vvwf-4rp8"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-50725"
}, {
"type" : "WEB",
"url" : "https://github.com/resque/resque/pull/1790"
}, {
"type" : "WEB",
"url" : "https://github.com/resque/resque/commit/ee99d2ed6cc75d9d384483b70c2d96d312115f07"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/resque/resque"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/resque/CVE-2023-50725.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-233", "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-12-18T19:34:06Z",
"nvd_published_at" : "2023-12-22T20:15:07Z"
}
}