{"id":"CVE-2020-4052","published":"2020-06-16T21:55:15Z","modified":"2024-08-04T07:52:20Z","title":"Stored XSS through template injection in Wiki.js","vendor":"Requarks.io","product":"Wiki.js","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00856,"percentile":0.59257,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/Requarks/wiki/security/advisories/GHSA-9jgg-4xj2-vjjj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Requarks/wiki/commit/9e08718ee904046f8b2294ef6ac79e8a75a451e3","tags":["x_refsource_MISC"]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":11.85},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"requarks-io","affectedVersions":[{"vendor":"Requarks.io","product":"Wiki.js","versions":["< 2.4.107"]}],"euvd":{"id":"EUVD-2020-25309","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-requarks-io-wiki-js-cve-2020-4052","children":[{"from":"CVE-2020-4052","to":"CVE-2021-21383","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/modules/rendering/html-core/renderer.js"],"commits":["https://github.com/Requarks/wiki/commit/9e08718ee904046f8b2294ef6ac79e8a75a451e3","https://github.com/Requarks/wiki/commit/5ffa189383dd716f12b56b8cae2ba0d075996cf1"],"basis":"rarely changed file"}]},{"from":"CVE-2020-4052","to":"CVE-2024-34710","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/modules/rendering/html-core/renderer.js"],"commits":["https://github.com/Requarks/wiki/commit/9e08718ee904046f8b2294ef6ac79e8a75a451e3","https://github.com/requarks/wiki/commit/1238d614e1599fefadd4614ee4b5797a087f50ac"],"basis":"rarely changed file"}]}]}}