# CVE-2022-40011: Typora through 1.3.8 allows XSS if a document containing an SVG element with an attacker-controlled onload attribute is exported and then u…

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-12-23T00:00:00.000Z
- Modified: 2026-07-09T01:17:42.753Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- typora typora: up to 1.3.8

## Every score

- CISA-ADP: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://gist.github.com/wangking1/61bdd1967367301a950ffbb3d10386f3> (exploit, third-party-advisory)
- <https://typora.io/releases/all> (release-notes)

## Sources

- CVE List: [CVE-2022-40011](https://www.cve.org/CVERecord?id=CVE-2022-40011), CVE Terms of Use, modified 2026-07-09
- NVD: [CVE-2022-40011](https://nvd.nist.gov/vuln/detail/CVE-2022-40011), Public domain, modified 2026-07-09

---

Page: https://cve.day/CVE-2022-40011 · Whole record: https://cve.day/CVE-2022-40011.json · Rebuilt by cve.day 2026-11-25T22:58:17.854Z
