# CVE-2024-28121: Reflex arbitrary method call in stimulus\_reflex

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.66% (percentile 77, 2026-11-26)
- **CWE:** CWE-470
- **Aliases:** GHSA-f78j-4w3g-4q65
- **Published:** 2024-03-12T15:44:49.000Z
- **Modified:** 2026-09-10T03:50:10.696Z

## 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

## 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

- RubyGems `stimulus_reflex`: affected \>= 3.5.0.pre0, \< 3.5.0.rc4; fixed 3.5.0.rc4, 3.4.2 (osv)
- npm `stimulus_reflex`: affected \>= 3.5.0-pre0, \< 3.5.0-rc4; fixed 3.5.0-rc4, 3.4.2 (osv)
- stimulusreflex stimulus\_reflex: \>= 3.5.0.rc1, \< 3.5.0.rc4; \< 3.4.2 (cvelist)

## 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).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/stimulusreflex/stimulus_reflex/security/advisories/GHSA-f78j-4w3g-4q65>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-28121>
- patch: <https://github.com/stimulusreflex/stimulus_reflex/commit/538582d240439aab76066c72335ea92096cd0c7f>
- patch: <https://github.com/stimulusreflex/stimulus_reflex/commit/d823d7348f9ca42eb6df25574f11974e4f5bc88c>
- exploit: <http://seclists.org/fulldisclosure/2024/Mar/16>
- other: <https://github.com/stimulusreflex/stimulus_reflex/blob/0211cad7d60fe96838587f159d657e44cee51b9b/app/channels/stimulus_reflex/channel.rb#L83>
- other: <https://github.com/stimulusreflex/stimulus_reflex/releases/tag/v3.4.2>
- other: <https://github.com/stimulusreflex/stimulus_reflex/releases/tag/v3.5.0.rc4>
- other: <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/stimulus_reflex/CVE-2024-28121.yml>
- other: <https://github.com/stimulusreflex/stimulus_reflex>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-28121>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-f78j-4w3g-4q65> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-28121> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-28121>
