7.6
HIGH
CVE-2021-21383
Wiki.js Stored Cross-Site Scripting Vulnerability
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.

INFO

Published Date :

March 18, 2021, 5:15 p.m.

Last Modified :

March 24, 2021, 2 p.m.

Remotely Exploitable :

Yes !

Impact Score :

4.7

Exploitability Score :

2.3
Affected Products

The following products are affected by CVE-2021-21383 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Requarks wiki.js
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-21383.

URL Resource
https://github.com/Requarks/wiki/commit/5ffa189383dd716f12b56b8cae2ba0d075996cf1 Patch Third Party Advisory
https://github.com/Requarks/wiki/releases/tag/2.5.191 Release Notes Third Party Advisory
https://github.com/Requarks/wiki/security/advisories/GHSA-6xx4-m8gx-826r Exploit Patch Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-21383 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-21383 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Mar. 24, 2021

    Action Type Old Value New Value
    Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism
    Added CVSS V2 NIST (AV:N/AC:M/Au:S/C:N/I:P/A:N)
    Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    Changed Reference Type https://github.com/Requarks/wiki/commit/5ffa189383dd716f12b56b8cae2ba0d075996cf1 No Types Assigned https://github.com/Requarks/wiki/commit/5ffa189383dd716f12b56b8cae2ba0d075996cf1 Patch, Third Party Advisory
    Changed Reference Type https://github.com/Requarks/wiki/releases/tag/2.5.191 No Types Assigned https://github.com/Requarks/wiki/releases/tag/2.5.191 Release Notes, Third Party Advisory
    Changed Reference Type https://github.com/Requarks/wiki/security/advisories/GHSA-6xx4-m8gx-826r No Types Assigned https://github.com/Requarks/wiki/security/advisories/GHSA-6xx4-m8gx-826r Exploit, Patch, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:requarks:wiki.js:*:*:*:*:*:*:*:* versions up to (excluding) 2.5.191
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-21383 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-21383 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.06 }} 0.00%

score

0.24234

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability