SecurityContext

CVE-2021-21383: Wiki.js - Stored XSS

  • Cve: CVE-2021-21383
  • Name: Wiki.js - Stored XSS
  • 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.
  • Impact: Attackers can execute malicious JavaScript in users' browsers, potentially leading to session hijacking, data theft, or defacement.
  • Remediation: Update to version 2.5.191 or later, which adds the v-pre directive to `<pre>` tags during rendering to prevent this vulnerability.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00971
  • Epss percentile: 0.62638
  • Assignee: [email protected]
  • Published at: 2021-03-18T17:15:13Z
  • Age in days: 2077
  • Modified at: 2026-06-17T03:35:27Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-21383
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Public exploits

UrlSourceAdded date
https://github.com/Requarks/wiki/security/advisories/GHSA-6xx4-m8gx-826rnvd2021-03-18

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/Requarks/wiki/commit/5ffa189383dd716f12b56b8cae2ba0d075996cf1Patch, Third Party Advisory
https://github.com/Requarks/wiki/security/advisories/GHSA-6xx4-m8gx-826rExploit, Patch, Third Party Advisory
https://github.com/Requarks/wiki/releases/tag/2.5.191Release Notes, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
requarks:wiki.js< 2.5.191nonvd/v1/products/requarks/wiki.js

Projects

RepositoryLink kindsIndexedUrl
Requarks/wikicommit, fix, releases, security_advisoryyes/v1/repositories/Requarks/wiki

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-03-18
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 20
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports