CVE-2020-4052 Stored XSS through template injection in Wiki.js

Medium 6.3 Published Updated

A malicious user can inject JavaScript via crafted wiki pages, leading to stored XSS attacks against other users viewing the page.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2020-4052?

CVE-2020-4052 is a medium-severity cross-site scripting vulnerability in Requarks.io Wiki.js, published on 16 Jun 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-79

Which versions are affected by CVE-2020-4052?

It affects 1 product.

Products include Requarks Wiki.js.

How do I fix CVE-2020-4052?

No fix has been published for CVE-2020-4052 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2020-4052 being exploited?

There is no known exploitation of CVE-2020-4052 in the wild and no public exploit code.

Sources

Also known as GHSA-9jgg-4xj2-vjjj.

Is CVE-2020-4052 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free