cve.bz

CVE-2024-28121 stimulusreflex stimulusrelfex: Reflection Injection

8.8 highExploit referenceEPSS 1.6%Fix available

High (8.8) in stimulusreflex stimulusrelfex. EPSS 1.6% estimated probability of exploitation activity in the next 30 days. Fixed in stimulus_reflex 3.4.2, 3.5.0-rc4, 3.5.0.rc4.

On this page
stimulus_reflex is a system to extend the capabilities of both Rails and Stimulus by intercepting user interactions and passing them to Rails over real-time websockets. In affected versions more methods than expected can be called on reflex instances. Being able to call some of them has security implications. To invoke a reflex a websocket message of the following shape is sent: `\"target\":\"[class_name]#[method_name]\",\"args\":[]`. The server will proceed to instantiate `reflex` using the provided `class_name` as long as it extends `StimulusReflex::Reflex`. It then attempts to call `method_name` on the instance with the provided arguments. This is problematic as `reflex.method method_name` can be more methods that those explicitly specified by the developer in their reflex class. A good example is the instance_variable_set method. This vulnerability has been patched in versions 3.4.2 and 3.5.0.rc4. Users unable to upgrade should: see the backing GHSA advisory for mitigation advice.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.6% (unchanged from 1.6% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 76th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-03-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-470 Use of Externally-Controlled Input to Select Classes or Code (Reflection Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-28121 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-28121?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-28121?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-28121 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
stimulusreflex:stimulusrelfexbefore 3.4.2
stimulusreflex:stimulusrelfex3.5.0:pre1
stimulusreflex:stimulusrelfex3.5.0:pre10
stimulusreflex:stimulusrelfex3.5.0:pre2
stimulusreflex:stimulusrelfex3.5.0:pre3
stimulusreflex:stimulusrelfex3.5.0:pre4
stimulusreflex:stimulusrelfex3.5.0:pre5
stimulusreflex:stimulusrelfex3.5.0:pre6
stimulusreflex:stimulusrelfex3.5.0:pre7
stimulusreflex:stimulusrelfex3.5.0:pre8
stimulusreflex:stimulusrelfex3.5.0:pre9
stimulusreflex:stimulusrelfex3.5.0:rc1
stimulusreflex:stimulusrelfex3.5.0:rc2
stimulusreflex:stimulusrelfex3.5.0:rc3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-f78j-4w3g-4q65RubyGemsstimulus_reflex>=3.5.0.pre0 <3.5.0.rc43.5.0.rc4
GHSA-f78j-4w3g-4q65RubyGemsstimulus_reflex<3.4.23.4.2
GHSA-f78j-4w3g-4q65npmstimulus_reflex>=3.5.0-pre0 <3.5.0-rc43.5.0-rc4
GHSA-f78j-4w3g-4q65npmstimulus_reflex<3.4.23.4.2

Attack patterns (CAPEC)

  • CAPEC-138 Reflection Injection Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON