CVE-2026-58266
mediumpriority · track · 0EPSS 0.002 · 13 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (2)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-cw6h-ffmh-x6vhAnki: User scripts in iframes have access to the internal Anki API2026-06-19ghsa · osvUS
## Summary 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) ## Affected Products | Ecosystem | Package | Affected Versions | | --------- | ------- | ----------------- | | PyPI | `aqt` | `<= 25.09.3` | ## Impact 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. ## Patches A patch is available in 25.09.4 ## Workarounds - Do not import `.apkg` files from untrusted sources. - Inspect `.apkg` contents (it's a ZIP) for `.html`/`.svg` files with `<script>` tags before importing. - Block unexpected outbound network requests from the Anki process at the firewall level. ## References - Vulnerability report: _Anki arbitrary file read vulnerability (with exfiltration)_ — Bankde (Eakasit) - Affected source: [`qt/aqt/mediasrv.py::_handle_local_file_request`](https://github.com/ankitects/anki/blob/5a9b54e9380c66e26391f0827867d2a728107836/qt/aqt/mediasrv.py#L223) - Related prior CVEs: [CVE-2024-29073](https://nvd.nist.gov/vuln/detail/CVE-2024-29073), [CVE-2024-32484](https://nvd.nist.gov/vuln/detail/CVE-2024-32484), [CVE-2025-62185](https://nvd.nist.gov/vuln/detail/CVE-2025-62185), [CVE-2025-62187](https://nvd.nist.gov/vuln/detail/CVE-2025-62187)
also known as (2)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (9)
External citations — patches, advisories, analysis.
- https://github.com/ankitects/anki/commit/b2b68d829e853da51b5de8aad6c13b53e90bc20dcnnvd
- https://github.com/ankitects/anki/releases/tag/25.09.4cnnvd
- https://github.com/ankitects/anki/security/advisories/GHSA-cw6h-ffmh-x6vhcnnvd
- https://github.com/ankitects/anki/commit/b2b68d829e853da51b5de8aad6c13b53e90bc20denisa_euvd
- https://github.com/ankitects/anki/releases/tag/25.09.4enisa_euvd
- https://github.com/ankitects/anki/security/advisories/GHSA-cw6h-ffmh-x6vhenisa_euvd
- https://github.com/ankitects/anki/commit/b2b68d829e853da51b5de8aad6c13b53e90bc20dnvd
- https://github.com/ankitects/anki/releases/tag/25.09.4nvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan