CVE-2026-24474 Dioxus Components has JavaScript injection via user-supplied IDs
Attackers can execute arbitrary JavaScript in Dioxus applications by supplying malicious IDs to the use_animated_open hook.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-24474?
CVE-2026-24474 is a medium-severity code injection vulnerability in DioxusLabs components, published on 23 Jan 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Dioxus Components is a shadcn-style component library for the Dioxus app framework. Prior to commit 41e4242ecb1062d04ae42a5215363c1d9fd4e23a, `use_animated_open` formats a string for `eval` with an `id` that can be user supplied. Commit 41e4242ecb1062d04ae42a5215363c1d9fd4e23a patches the issue.
Which versions are affected by CVE-2026-24474?
How do I fix CVE-2026-24474?
No fix has been published for CVE-2026-24474 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-24474 being exploited?
There is no known exploitation of CVE-2026-24474 in the wild and no public exploit code.
Sources
Also known as GHSA-34pj-292j-xr69.