What’s Vulnerable › Vulnerabilities
CVE-2020-4052: Stored XSS through template injection in Wiki.js
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2020-06-16 · updated 2026-06-17
- Weakness: CWE-79
Description
In Wiki.js before 2.4.107, there is a stored cross-site scripting through template injection. This vulnerability exists due to an insecure validation mechanism intended to insert v-pre tags into rendered HTML elements which contain curly-braces. 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. This has been patched in 2.4.107.
Affected products
- Requarks wiki: before 2.4.107 — fixed in 2.4.107
How to fix
Upgrade to a fixed version: Requarks wiki 2.4.107. Check the vendor advisory for mitigations.
References
- https://github.com/Requarks/wiki/commit/9e08718ee904046f8b2294ef6ac79e8a75a451e3
- https://github.com/Requarks/wiki/security/advisories/GHSA-9jgg-4xj2-vjjj
- https://github.com/Requarks/wiki/commit/9e08718ee904046f8b2294ef6ac79e8a75a451e3
- https://github.com/Requarks/wiki/security/advisories/GHSA-9jgg-4xj2-vjjj
Get alerted when CVE-2020-4052 or the next vulnerability affects your stack