CVE-2024-6938 SiYuan PDF PDF.js cross site scripting
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.
Other vulnerabilities in B3log Siyuan
- CVE-2026-32938 SiYuan has an Arbitrary File Read in its Desktop Publish Service
- CVE-2026-33669 SiYuan has Arbitrary Document Reading within the Publishing Service
- CVE-2026-33670 SiYuan has directory traversal within its publishing service
- CVE-2026-32767 SiYuan: Authorization Bypass Allows Arbitrary SQL Execution via Search API
- CVE-2024-53504 SQL injection in n/a
Sources
Also known as GHSA-5pw4-4x9f-5r64.