Vulnerability · Published Jul 7, 2026 · Assigned by GitHub_M
CVE-2026-58266Anki: User scripts in iframes have access to the internal Anki API
Medium 6.5
In plain English
A medium-severity security flaw in anki from ankitects. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 13% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | aqt | 25.9.4 | GHSA-cw6h-ffmh-x6vh |
| Ubuntu:22.04:LTS | anki | no fix listed | UBUNTU-CVE-2026-58266 |
| Ubuntu:24.04:LTS | anki | no fix listed | UBUNTU-CVE-2026-58266 |
Affected products (as reported)
Weakness: CWE-346 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
References
- https://github.com/ankitects/anki/security/advisories/GHSA-cw6h-ffmh-x6vh x_refsource_CONFIRM
- https://github.com/ankitects/anki/commit/b2b68d829e853da51b5de8aad6c13b53e90bc20d x_refsource_MISC
- https://github.com/ankitects/anki/releases/tag/25.09.4 x_refsource_MISC