CVE-2026-58266: Anki: User scripts in iframes have access to the internal Anki API
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Ankito a version that resolves this vulnerability.Fixed in 25.09.4
Event History
Frequently Asked Questions
What is the severity of CVE-2026-58266?
CVE-2026-58266 has a medium severity rating of 6.5.
How do I fix CVE-2026-58266?
To mitigate CVE-2026-58266, users should upgrade Anki to version 25.09.4 or later.
What does CVE-2026-58266 affect?
CVE-2026-58266 affects Anki's webview-based pages that allow user scripts in iframes to access the internal Anki API.
What is the potential impact of CVE-2026-58266?
The potential impact of CVE-2026-58266 includes unauthorized access to sensitive data through user scripts.
When was CVE-2026-58266 published?
CVE-2026-58266 was published on July 7, 2026.