Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-28121

HIGH 8.8PoCEPSS 77%

Reflex arbitrary method call in stimulus_reflex

Also known as GHSA-f78j-4w3g-4q65

Mitigation

  • Upgrade stimulus_reflex to one of 3.5.0.rc4, 3.4.2 (or later in the same release line).
  • Upgrade stimulus_reflex to one of 3.5.0-rc4, 3.4.2 (or later in the same release line).

Who should check

  • Projects that depend on RubyGems package stimulus_reflex (>= 3.5.0.pre0, < 3.5.0.rc4)
  • Projects that depend on npm package stimulus_reflex (>= 3.5.0-pre0, < 3.5.0-rc4)
  • Anyone running stimulusreflex stimulus_reflex >= 3.5.0.rc1, < 3.5.0.rc4; < 3.4.2

Vulnerability facts

Affected
stimulus_reflex >= 3.5.0.pre0, < 3.5.0.rc4; stimulus_reflex >= 3.5.0-pre0, < 3.5.0-rc4
Fixed in
3.5.0.rc4, 3.4.2, 3.5.0-rc4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Remote, login needed
CVSS
8.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
1.66% chance of exploitation in 30 days (percentile 77, 2026-11-26)
CWE
CWE-470
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
RubyGems stimulus_reflex>= 3.5.0.pre0, < 3.5.0.rc43.5.0.rc4, 3.4.2osv
npm stimulus_reflex>= 3.5.0-pre0, < 3.5.0-rc43.5.0-rc4, 3.4.2osv
stimulusreflex stimulus_reflex>= 3.5.0.rc1, < 3.5.0.rc4; < 3.4.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-28121. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-28121.md
Affected: stimulus_reflex >= 3.5.0.pre0, < 3.5.0.rc4; stimulus_reflex >= 3.5.0-pre0, < 3.5.0-rc4
Fixed in: 3.5.0.rc4, 3.4.2, 3.5.0-rc4

Steps:
1. Search this machine and project for stimulus_reflex (RubyGems), stimulus_reflex (npm), stimulusreflex stimulus_reflex: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-28121 being exploited?

There is no confirmed exploitation: CVE-2024-28121 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.66% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-28121?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

Which versions are affected by CVE-2024-28121?

stimulus_reflex >= 3.5.0.pre0, < 3.5.0.rc4; stimulus_reflex >= 3.5.0-pre0, < 3.5.0-rc4.

Is there a fix for CVE-2024-28121?

Yes. Fixed in 3.5.0.rc4, 3.4.2, 3.5.0-rc4. Upgrade stimulus_reflex to one of 3.5.0.rc4, 3.4.2 (or later in the same release line). Upgrade stimulus_reflex to one of 3.5.0-rc4, 3.4.2 (or later in the same release line).

How do I check if I'm affected by CVE-2024-28121?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors