CVE-2022-40011 Cross-site scripting in n/a

Medium 6.1 Published Updated

An attacker can execute arbitrary scripts in a victim's browser context by tricking them into exporting and viewing a malicious SVG document in Typora.

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-2022-40011?

CVE-2022-40011 is a medium-severity cross-site scripting vulnerability in n/a, published on 23 Dec 2022. 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

Typora through 1.3.8 allows XSS if a document containing an SVG element with an attacker-controlled onload attribute is exported and then used at a victim's origin.

Weakness: CWE-79

Which versions are affected by CVE-2022-40011?

It affects 1 product.

Products include Typora Typora.

How do I fix CVE-2022-40011?

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

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

Sources

Also known as GHSA-q28p-82xj-hwh7.

Is CVE-2022-40011 in your software?

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

Check your SBOMs for free