Security advisory
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 `` 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 `` tags during the render.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-21383
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:32 UTC · Revision 1
Source evidence
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 `` 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 `` tags during the render.
osv:CVE-2021-21383
Complete source record
{
"id": "0f2e7ddc7f7e4da9a28fb216696e664c2e33ae117e566704b6fcea879dc739a6",
"url": "https://osv.dev/vulnerability/CVE-2021-21383",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-21383",
"summary": "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 `` 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 `` tags during the render.",
"evidence": "osv:CVE-2021-21383",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-21383",
"aliases": [
"CVE-2021-21383",
"GHSA-6xx4-m8gx-826r"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/requarks/wiki",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "5ffa189383dd716f12b56b8cae2ba0d075996cf1"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:requarks:wiki.js:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.5.191"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "5ffa189383dd716f12b56b8cae2ba0d075996cf1"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "5ffa189383dd716f12b56b8cae2ba0d075996cf1"
}
],
"source": "REFERENCES_TAG",
"original_tag": "2.5.191"
}
]
}
}
],
"versions": [
"2.5.170",
"2.5.159",
"2.5.144",
"2.5.136",
"2.5.132",
"2.5.126",
"2.5.121",
"2.5.117",
"2.5.105",
"2.4.107",
"2.4.105",
"2.4.75",
"2.3.77",
"2.3.72",
"2.3.71",
"2.2.51",
"2.2.50",
"2.1.113",
"2.0.12",
"2.0.1",
"2.0.0-rc.17",
"2.0.0-rc.1",
"2.0.0-beta.303",
"2.0.0-beta.275",
"2.0.0-beta.268",
"2.0.0-beta.267",
"2.0.0-beta.241",
"2.0.0-beta.230",
"2.0.0-beta.208",
"2.0.0-beta.203",
"2.0.0-beta.180",
"2.0.0-beta.174",
"2.0.0-beta.148",
"2.0.0-beta.147",
"2.0.0-beta.115",
"2.0.0-beta.91",
"2.0.0-beta.84",
"2.0.0-beta.68",
"2.0.0-beta.42",
"2.0.0-beta.11",
"v1.0.6",
"v1.0.5",
"v1.0.4",
"v1.0.3",
"v1.0.0-beta.13",
"v1.0.0-beta.12",
"v1.0.0-beta.11",
"v1.0.0-beta.10",
"v1.0.0-beta.9",
"v1.0.0-beta.8",
"v1.0.0-beta.7",
"v1.0.0-beta.6",
"v1.0-beta.5",
"v1.0-beta.4",
"v1.0-beta.3",
"v1.0-beta.2",
"v1.0-beta.1",
"v1.0-alpha.7",
"v1.0-alpha.6",
"v1.0-alpha.5",
"v1.0-alpha.4",
"v1.0-alpha.3",
"v1.0-alpha.2",
"v1.0-alpha.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21383.json"
}
}
],
"modified": "2026-10-20T10:54:28.568851780Z",
"provider": "osv",
"references": [
"https://github.com/Requarks/wiki/releases/tag/2.5.191",
"https://github.com/Requarks/wiki/commit/5ffa189383dd716f12b56b8cae2ba0d075996cf1",
"https://github.com/Requarks/wiki/security/advisories/GHSA-6xx4-m8gx-826r"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-21383",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385422,
"published_at": "2021-03-18T17:15:13.947+00:00"
}