rails_admin ruby gem XSSGHSA-pxr8-w3jq-rcwj
MEDIUMGHSA-pxr8-w3jq-rcwj is a medium-severity (CVSS 6.1) Cross-site Scripting (XSS) vulnerability in rails_admin. 3 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for rails_admin — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
rails_adminReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects RubyGems packages — download data is not available via public APIs for these ecosystems.
Description
An exploitable cross site scripting (XSS) vulnerability exists in the add filter functionality of the rails_admin rails gem version 1.2.0. A specially crafted URL can cause an XSS flaw resulting in an attacker being able to execute arbitrary javascript on the victim's browser. An attacker can phish an authenticated user to trigger this vulnerability.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 💎RubyGems | rails_admin | all versions | 1.3.0bundle update rails_admin --conservative |
Affected Products
rails adminrails_admin_projectResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for rails_admin, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update rails_admin to 1.3.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-pxr8-w3jq-rcwj is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Frequently Asked Questions
Is GHSA-pxr8-w3jq-rcwj in your dependencies?
Find it across RubyGems, including transitive dependencies.