CVE-2023-2317 Typora DOM-Based Cross-site Scripting leading to Remote Code Execution

High 8.6 Published Updated

A DOM-based XSS in Typora allows attackers to execute arbitrary code via malicious markdown files or pasted content.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2023-2317?

CVE-2023-2317 is a high-severity cross-site scripting vulnerability in Typora, published on 19 Aug 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

DOM-based XSS in updater/update.html in Typora before 1.6.7 on Windows and Linux allows a crafted markdown file to run arbitrary JavaScript code in the context of Typora main window via loading typora://app/typemark/updater/update.html in <embed> tag. This vulnerability can be exploited if a user opens a malicious markdown file in Typora, or copies text from a malicious webpage and paste it into Typora.

Weakness: CWE-79

Which versions are affected by CVE-2023-2317?

It affects 1 product.

Products include Typora Typora.

How do I fix CVE-2023-2317?

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

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

Sources

Also known as GHSA-vwv2-9jpv-577p.

Is CVE-2023-2317 in your software?

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

Check your SBOMs for free