CVE-2021-21383
XSS in Wiki.js
Mitigation
- Upgrade wiki to 2.5.191 or later.
Who should check
- Anyone running Requarks wiki < 2.5.191
Vulnerability facts
- Affected
- Requarks wiki < 2.5.191
- Fixed in
- Requarks wiki 2.5.191
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 7.6 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: Low
- Integrity impact: High
- Availability impact: None
- EPSS
- 0.97% chance of exploitation in 30 days (percentile 61, 2026-11-26)
- CWE
- CWE-79
- Modified
Description
Wiki.js an open-source wiki app built on Node.js. Wiki.js before version 2.5.191 is vulnerable to stored cross-site scripting through mustache expressions in code blocks. This vulnerability exists due to mustache expressions being parsed by Vue during content injection even though it is contained within a `<pre>` element. By creating a crafted wiki page, a malicious Wiki.js user may stage a stored cross-site scripting attack. This allows the attacker to execute malicious JavaScript when the page is viewed by other users. For an example see referenced GitHub Security Advisory. Commit 5ffa189383dd716f12b56b8cae2ba0d075996cf1 fixes this vulnerability by adding the v-pre directive to all `<pre>` tags during the render.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Requarks wiki | < 2.5.191 | — | 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-21383. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-21383.md Affected: Requarks wiki < 2.5.191 Fixed in: Requarks wiki 2.5.191 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-21383 being exploited?
There is no confirmed exploitation: CVE-2021-21383 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.97% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-21383?
High: CVSS 7.6 (v3.1, scored by CNA). Remote, 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-21383?
Requarks wiki < 2.5.191.
Is there a fix for CVE-2021-21383?
Yes. Fixed in Requarks wiki 2.5.191. Upgrade wiki to 2.5.191 or later.
How do I check if I'm affected by CVE-2021-21383?
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.