CVE-2024-34710 Wiki.js Stored XSS through Client Side Template Injection

High 7.1 Published Updated

An attacker can inject malicious JavaScript into Wiki.js pages via client-side template injection, executing code in victims' browsers.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-34710?

CVE-2024-34710 is a high-severity cross-site scripting vulnerability in requarks wiki, published on 20 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Wiki.js is al wiki app built on Node.js. Client side template injection was discovered, that could allow an attacker to inject malicious JavaScript into the content section of pages that would execute once a victim loads the page that contains the payload. This was possible through the injection of a invalid HTML tag with a template injection payload on the next line. This vulnerability is fixed in 2.5.303.

Weakness: CWE-1336

Which versions are affected by CVE-2024-34710?

1 open source package ship an affected version, including github.com/requarks/wiki.

PackageAffectedFixed in
github.com/requarks/wiki GoAll versionsNone

How do I fix CVE-2024-34710?

No fix has been published for CVE-2024-34710 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-2024-34710 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-34710 exists.

Sources

Also known as GHSA-xjcj-p2qv-q3rf, GO-2024-2875.

Is CVE-2024-34710 in your software?

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

Check your SBOMs for free