CVE-2021-25993 Requarks wiki.js - Stored Cross-Site Scripting (XSS) in markdown editor
An editor can upload malicious SVG files to execute scripts, stealing JWT tokens and leading to account takeover.
- 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-25993?
CVE-2021-25993 is a medium-severity cross-site scripting vulnerability in Requarks wiki, published on 29 Dec 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
In Requarks wiki.js, versions 2.0.0-beta.147 to 2.5.255 are affected by Stored XSS vulnerability, where a low privileged (editor) user can upload a SVG file that contains malicious JavaScript while uploading assets in the page. That will send the JWT tokens to the attacker’s server and will lead to account takeover when accessed by the victim.
Weakness: CWE-79
Which versions are affected by CVE-2021-25993?
It affects 1 product.
Products include Requarks Wiki.js.
How do I fix CVE-2021-25993?
No fix has been published for CVE-2021-25993 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-25993 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-25993 exists.
Other vulnerabilities in Requarks wiki
Sources
Also known as GHSA-42pj-96jc-q58w.