CVE-2026-58266: Ankitects Anki arbitrary file read via iframe API bypass

CVE-2026-58266 · Severity: medium · CVSS 6.5 · Published 2026-07-07

Anki is a popular flashcard application used for learning and memorization. A security flaw in how the application handles imported content allows a malicious flashcard package to bypass security restrictions. If a user imports and views a specially crafted deck, an attacker could remotely steal private files from the user's computer and send them over the internet.

Technologies: Ankitects Anki. Vendors: Ankitects, PyPI.

Quick answers

Is CVE-2026-58266 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-58266 being exploited in the wild.
How severe is CVE-2026-58266?
Medium severity, with a CVSS score of 6.5, published 7 July 2026.
Which products and versions are affected?
Ankitects Anki < 25.09.4; aqt (PyPI) ECOSYSTEM:introduced=0,fixed=25.9.4.
Is there a fix for CVE-2026-58266?
Yes. aqt (PyPI): upgrade to 25.9.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-58266 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2026-58266?
Check whether you run Ankitects Anki or aqt (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • aqt (PyPI): upgrade to 25.9.4 or later
    pip install "aqt>=25.9.4"

Technical details

Anki's webview-based interface communicates with its Rust backend via an internal localhost API. While protections exist to block reviewer and editor scripts from this API, user scripts embedded within iframes in the editor can bypass these restrictions. An attacker can distribute a malicious .apkg (card package) containing an iframe that calls exposed API methods, such as 'getImageForOcclusion', to perform path traversal and read arbitrary files accessible to the Anki process. These files can then be exfiltrated over the network. The fix, introduced in version 25.09.4, implements a stricter Content Security Policy (CSP) that sandboxes active documents and blocks script execution for untrusted media.

Affected products

  • Ankitects Anki < 25.09.4
  • Ankitects aqt <= 25.09.3

Identifiers

  • CVE-2026-58266
  • GHSA-cw6h-ffmh-x6vh

Timeline

  • 2026-05-08: patched: Version 25.09.4 released
  • 2026-06-19: advisory: GitHub Security Advisory published
  • 2026-07-07: disclosed: CVE published to NVD

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.