CVE-2026-58266

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

Published Jul 7, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Anki's webview editor communicates with the Rust backend through an internal localhost API. Until version 25.09.4 that API was unintentionally exposed to user scripts executed inside iframes embedded in the editor. A malicious card package can embed an iframe containing a script that calls API methods such as getImageForOcclusion, allowing the script to read any file accessible to the Anki process. The data can then be sent over the network, resulting in confidentiality compromise of locally stored information.

Affected Systems

The vulnerability affects the Anki desktop application released by ankitects. All versions prior to 25.09.4 are vulnerable; later versions are not affected.

Risk and Exploitability

The CVSS score of 6.5 indicates medium severity. The EPSS score is < 1 %, which reflects a very low expected exploitation probability. Exploitation requires a user to import a custom card package, a normal user‑initiated action. Because the attack surface is an untrusted user action and the EPSS indicates low exploitation likelihood, the overall risk is low, but the impact of arbitrary file read and exfiltration is significant.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Anki to version 25.09.4 or later to remove the iframe API exposure
  • Until the patch is applied, avoid importing card packages from untrusted or unknown sources
  • Review existing card packages for iframe content and remove or disable any embedded scripts

Generated by OpenCVE AI on August 1, 2026 at 17:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ankitects
Ankitects anki
Vendors & Products Ankitects
Ankitects anki
Type Values Removed Values Added
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.
Title Anki: User scripts in iframes have access to the internal Anki API
Weaknesses CWE-346
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 8, 2026, 1:23 PM
Reserved
Jun 29, 2026, 9:54 PM
Status
Deferred
Published
Jul 7, 2026, 10:16 PM
Modified
Oct 25, 2026, 8:10 PM