CVE-2023-2971
NixOS vulnerability analysis and mitigation

Overview

CVE-2023-2971 is a Local File Disclosure vulnerability discovered in Typora versions before 1.7.0-dev affecting both Windows and Linux platforms. The vulnerability allows a crafted webpage to access local files and exfiltrate them to remote web servers via the 'typora://app/typemark/' protocol. This vulnerability was identified in August 2023 and is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) (STAR Labs, NVD).

Technical details

The vulnerability exists in the custom URL scheme 'typora://' handler implemented in resources/app.asar/atom.js. While a previous patch in version 1.6.5 added a sanity check to ensure paths start with 'typemark', the fix was incomplete. Attackers can still bypass this protection using two methods: using '..%5C' (Windows-only) or passing '../' in URL fragments. The vulnerability has a CVSS v3.1 Base Score of 6.5 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N according to NVD, while STAR Labs rates it at 6.3 (Medium) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N (STAR Labs, NVD).

Impact

The vulnerability allows attackers to access and exfiltrate arbitrary local files from the victim's system to remote web servers. This can lead to the disclosure of sensitive information stored in local files (STAR Labs).

Exploitability

The vulnerability can be exploited through two main scenarios: 1) When a user opens a malicious markdown file in Typora, or 2) When a user copies text from a malicious webpage and pastes it into Typora. The exploit can be made less noticeable by using custom styles on the embedded tags (STAR Labs).

Mitigation and workarounds

The vulnerability has been patched in Typora version 1.7.0-dev. For users of affected versions, it is recommended to avoid opening untrusted markdown files in Typora and to avoid copying text from untrusted webpages and pasting it into Typora. Additionally, organizations should prohibit HTTP(S) webpages from accessing typora:// resources (STAR Labs).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-13097CRITICAL9.1
  • NixOS logoNixOS
  • python3-samba-test
NoYesAug 20, 2026
CVE-2026-11861HIGH8.1
  • NixOS logoNixOS
  • samba-common
NoYesAug 20, 2026
CVE-2026-73198HIGH7.5
  • NixOS logoNixOS
  • ctdb-ceph-mutex
NoYesAug 20, 2026
CVE-2026-73197HIGH7.5
  • NixOS logoNixOS
  • samba-test-libs-debuginfo
NoYesAug 20, 2026
CVE-2026-73196MEDIUM6.5
  • NixOS logoNixOS
  • samba-ldb-ldap-modules-debuginfo
NoYesAug 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management