CVE-2021-47841 SnipCommand 0.1.0 - Persistent Cross-Site Scripting
Attackers can inject malicious JavaScript into command snippets to execute arbitrary code via file or title inputs.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-47841?
CVE-2021-47841 is a medium-severity cross-site scripting vulnerability in gurayyarar SnipCommand, published on 16 Jan 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
SnipCommand 0.1.0 contains a cross-site scripting vulnerability that allows attackers to inject malicious payloads into command snippets. Attackers can execute arbitrary code by embedding malicious JavaScript that triggers remote command execution through file or title inputs.
Weakness: CWE-79
Which versions are affected by CVE-2021-47841?
How do I fix CVE-2021-47841?
No fix has been published for CVE-2021-47841 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-47841 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-47841 exists.
Sources
Also known as GHSA-m4cm-4fqh-fvr3.