Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-58266 EUVD-2026-42113GHSA-cw6h-ffmh-x6vh

Anki: User scripts in iframes have access to the internal Anki API

Published Jul 7, 2026 · Updated Jul 8, 2026 · Assigned by GitHub_M

Description

Anki is a program for creating and reviewing flashcards. Prior to 25.09.4, Anki's webview-based pages communicate with the Rust backend using an internal localhost API, and user scripts included via iframes in the editor can access this API despite protections intended to block reviewer and editor scripts. A malicious imported card package with an embedded iframe can use exposed API methods such as getImageForOcclusion to read arbitrary files accessible to the Anki process and exfiltrate them over the network. This issue is fixed in version 25.09.4.

Affected products

VendorProductAffectedFixed
ankitects anki < 25.09.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS anki No fix yet —
Ubuntu 22.04 LTS anki No fix yet —
Ubuntu 20.04 LTS anki No fix yet —
Ubuntu 18.04 LTS anki No fix yet —
Ubuntu 16.04 LTS anki No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI aqt < 25.9.4 25.9.4 GHSA-cw6h-ffmh-x6vh

References