CVE-2024-6938 SiYuan PDF PDF.js cross site scripting

Medium 5.3 Published Updated

Remote attackers can execute arbitrary scripts via the PDF.js component in SiYuan, potentially compromising user sessions or data.

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-6938?

CVE-2024-6938 is a medium-severity cross-site scripting vulnerability in B3log Siyuan, published on 21 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability has been found in SiYuan 3.1.0 and classified as problematic. Affected by this vulnerability is an unknown functionality of the file PDF.js of the component PDF Handler. The manipulation leads to cross site scripting. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. The identifier VDB-271993 was assigned to this vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2024-6938?

It affects 1 product.

Products include B3log Siyuan.

How do I fix CVE-2024-6938?

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

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

All B3log Siyuan vulnerabilities

Sources

Also known as GHSA-5pw4-4x9f-5r64.

Is CVE-2024-6938 in your software?

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

Check your SBOMs for free