CVE-2024-37031
Ruby vulnerability analysis and mitigation

Overview

CVE-2024-37031 affects the Active Admin (activeadmin) framework for Ruby on Rails versions before 3.2.2 and versions between 4.0.0.beta1 and 4.0.0.beta7. The vulnerability was disclosed on June 3, 2024, and involves a stored Cross-Site Scripting (XSS) vulnerability that occurs in situations where users can create entities with arbitrary names that are later edited in forms, specifically in 'dynamic form legends' (GHSA Advisory).

Technical details

The vulnerability exists when form legends are set dynamically based on user-controlled input. It affects both implicit and explicit form name declarations where the value can be arbitrarily set by non-admin users. The CVSS v3.1 base score is 6.1 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, indicating that the vulnerability is network-accessible, requires low attack complexity, needs no privileges, but does require user interaction (NVD).

Impact

When exploited, this vulnerability allows malicious users to execute arbitrary JavaScript code in the administrator's browser through stored XSS attacks. This can lead to potential data theft, session hijacking, or other malicious actions performed with the administrator's privileges (GHSA Advisory).

Exploitability

The vulnerability can be exploited when a public web application allows users to create entities with arbitrary names, and these entities are later managed through Active Admin in a private backend. A malicious user could create an entity with a specially crafted payload that would be executed in the administrator's browser when viewing or editing the entity (GHSA Advisory).

Mitigation and workarounds

The vulnerability has been patched in Active Admin versions 3.2.2 and 4.0.0.beta7. As a temporary workaround, users can explicitly escape the form name using an HTML escaping utility, for example by using ERB::Util.html_escape(resource.name). Additionally, configuring a Content Security Policy that does not allow 'unsafe-inline' can help prevent the vulnerability from being exploited (GHSA Advisory).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-55107CRITICAL10
  • Ruby logoRuby
  • kobako
NoYesAug 18, 2026
CVE-2026-61666HIGH8.9
  • Ruby logoRuby
  • pghero-fips
NoYesAug 17, 2026
CVE-2026-73648MEDIUM5.1
  • Ruby logoRuby
  • ruby3.3-rails-8.0
NoYesAug 13, 2026
CVE-2026-73426MEDIUM4.6
  • JavaScript logoJavaScript
  • ruby3.4-rails-8.1
NoYesAug 18, 2026
CVE-2026-73428MEDIUM4.6
  • JavaScript logoJavaScript
  • trix
NoYesAug 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management