CVE-2026-58266Medium· 6.5▾ SunlitAnki: User scripts in iframes have access to the internal Anki API
▾ Sunlit zone — Low / medium · no exploitation signal
impact 35.8 · likelihood 0 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Jul 8.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
0.2%
0.2% → 0.2%
Anki's webview-based pages communicate with the Rust backend using an internal localhost API. Anki implements measures to prevent user scripts run in the reviewer/editor from accessing this API (https://github.com/ankitects/anki/pull/3925) but it inadvertently allows access to scripts included via iframes in the editor. While overall only a limited set of API methods are exposed, some such as getImageForOcclusion can read arbitrary files.
CWE: CWE-22 (Path Traversal) Reporter: Bankde (Eakasit)
| Ecosystem | Package | Affected Versions |
|---|---|---|
| PyPI | aqt | <= 25.09.3 |
Any desktop Anki user (Windows, macOS, Linux) who imports an untrusted .apkg and views card with an embedded iframe is vulnerable. No special configuration is required. The attacker can read any file accessible to the Anki process and exfiltrate its contents over the network.
A patch is available in 25.09.4
.apkg files from untrusted sources..apkg contents (it's a ZIP) for .html/.svg files with <script> tags before importing.qt/aqt/mediasrv.py::_handle_local_file_requestaqt < 25.9.4Upgrade to a patched release:
aqt 25.9.4Connected by shared product, vendor, weakness, or advisory.
CVE-2026-59153HighAnki's local HTTP server does not sufficiently validate requests
GHSA-cw6h-ffmh-x6vhMedium· 6.5Anki: User scripts in iframes have access to the internal Anki API
GHSA-869j-r97x-hx2gHighAnki's local HTTP server does not sufficiently validate requests