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.
Published: 2026-07-07
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

Generated by OpenCVE AI on July 26, 2026 at 18:53 UTC.

Remediation

No vendor fix or workaround currently provided.

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 July 26, 2026 at 18:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 08 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 07 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Ankitects
Ankitects anki
Vendors & Products Ankitects
Ankitects anki

Tue, 07 Jul 2026 21:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-08T13:23:46.962Z

Reserved: 2026-06-29T21:54:30.331Z

Link: CVE-2026-58266

cve-icon Vulnrichment

Updated: 2026-07-08T13:23:32.608Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-26T19:00:02Z

Weaknesses