CVE-2021-43842
Wiki.js Stored Cross-Site Scripting via SVG File Upload
Description
Wiki.js is a wiki app built on Node.js. Wiki.js versions 2.5.257 and earlier are vulnerable to stored cross-site scripting through a SVG file upload. By creating a crafted SVG file, a malicious Wiki.js user may stage a stored cross-site scripting attack. This allows the attacker to execute malicious JavaScript when the SVG is viewed directly by other users. Scripts do not execute when loaded inside a page via normal `<img>` tags. Commit 5d3e81496fba1f0fbd64eeb855f30f69a9040718 fixes this vulnerability by adding an optional (enabled by default) SVG sanitization step to all file uploads that match the SVG mime type. As a workaround, disable file upload for all non-trusted users. Wiki.js version 2.5.260 is the first production version to contain a patch. Version 2.5.258 is the first development build to contain a patch and is available only as a Docker image as requarks/wiki:canary-2.5.258.
INFO
Published Date :
Dec. 20, 2021, 11:15 p.m.
Last Modified :
Jan. 3, 2022, 9:06 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
2.7
Exploitability Score :
2.3
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-43842
.
URL | Resource |
---|---|
https://github.com/Requarks/wiki/commit/5d3e81496fba1f0fbd64eeb855f30f69a9040718 | Patch Third Party Advisory |
https://github.com/Requarks/wiki/releases/tag/2.5.260 | Release Notes Third Party Advisory |
https://github.com/Requarks/wiki/security/advisories/GHSA-3qv4-gp35-rgh7 | 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-43842
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-43842
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]
Jan. 03, 2022
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) Changed Reference Type https://github.com/Requarks/wiki/commit/5d3e81496fba1f0fbd64eeb855f30f69a9040718 No Types Assigned https://github.com/Requarks/wiki/commit/5d3e81496fba1f0fbd64eeb855f30f69a9040718 Patch, Third Party Advisory Changed Reference Type https://github.com/Requarks/wiki/releases/tag/2.5.260 No Types Assigned https://github.com/Requarks/wiki/releases/tag/2.5.260 Release Notes, Third Party Advisory Changed Reference Type https://github.com/Requarks/wiki/security/advisories/GHSA-3qv4-gp35-rgh7 No Types Assigned https://github.com/Requarks/wiki/security/advisories/GHSA-3qv4-gp35-rgh7 Patch, Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:requarks:wiki.js:*:*:*:*:*:*:*:* versions up to (including) 2.5.257
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-43842
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-43842
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.23700
percentile