CVE-2021-43856
Stored XSS in non-image uploads in Requarks/wiki
Mitigation
- Upgrade wiki to 2.5.264 or later.
Who should check
- Anyone running Requarks wiki < 2.5.264
Vulnerability facts
- Affected
- Requarks wiki < 2.5.264
- Fixed in
- Requarks wiki 2.5.264
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.2 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.92% chance of exploitation in 30 days (percentile 58, 2026-11-26)
- CWE
- CWE-79
- Modified
Description
Wiki.js is a wiki app built on Node.js. Wiki.js 2.5.263 and earlier is vulnerable to stored cross-site scripting through non-image file uploads for file types that can be viewed directly inline in the browser. By creating a malicious file which can execute inline JS when viewed in the browser (e.g. XML files), a malicious Wiki.js user may stage a stored cross-site scripting attack. This allows the attacker to execute malicious JavaScript when the file is viewed directly by other users. The file must be opened directly by the user and will not trigger directly in a normal Wiki.js page. A patch in version 2.5.264 fixes this vulnerability by adding an optional (enabled by default) force download flag to all non-image file types, preventing the file from being viewed inline in the browser. As a workaround, disable file upload for all non-trusted users. --- Thanks to @Haxatron for reporting this vulnerability. Initially reported via https://huntr.dev/bounties/266bff09-00d9-43ca-a4bb-bb540642811f/
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Requarks wiki | < 2.5.264 | — | 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-2021-43856. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-43856.md Affected: Requarks wiki < 2.5.264 Fixed in: Requarks wiki 2.5.264 Steps: 1. Search this machine and project for Requarks wiki: 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-2021-43856 being exploited?
There is no confirmed exploitation: CVE-2021-43856 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.92% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-43856?
High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2021-43856?
Requarks wiki < 2.5.264.
Is there a fix for CVE-2021-43856?
Yes. Fixed in Requarks wiki 2.5.264. Upgrade wiki to 2.5.264 or later.
How do I check if I'm affected by CVE-2021-43856?
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.