Skip to main content

Anki CVE-2026-58266

| EUVDEUVD-2026-42113 MEDIUM
Origin Validation Error (CWE-346)
2026-07-07 GitHub_M
6.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious .apkg with iframe payload
  2. Delivery
    Distribute deck via community site or phishing
  3. Exploit
    Victim imports deck into Anki
  4. Execution
    Iframe bypasses origin validation on localhost API
  5. Persist
    Call getImageForOcclusion or similar API to read local files
  6. Impact
    Exfiltrate file contents to attacker server

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
Exploitation Conditions

The victim must actively import a malicious Anki card package (.apkg) - this is the required user interaction step reflected in CVSS UI:R. The attacker must embed a crafted iframe within a card that calls the exposed internal localhost API. Exploitation is constrained to files readable by the OS user account running Anki; it does not grant root or SYSTEM-level access beyond the process's own permissions. The vulnerability requires no authentication, no special network position, and no non-default Anki configuration - any installation of Anki prior to 25.09.4 with default settings is vulnerable upon import of a malicious deck. The critical limiting factor is the social engineering step: the victim must be convinced to import the deck.

Impact

The CVSS 3.1 score of 6.5 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N) reflects a realistic threat model: no attacker privileges or special configuration required, but a user interaction step (importing the malicious deck) limits automated exploitation. The Confidentiality impact is High, meaning an attacker can read arbitrary files accessible to the Anki process, including documents, credentials, SSH keys, and browser profiles depending on OS permissions. No EPSS probability data was provided in the input. No CISA KEV listing exists, and no public POC exploit code has been identified, indicating this is not currently under widespread active exploitation. The social engineering surface is non-trivial - Anki's large user community regularly shares and imports deck packages from community repositories, making malicious deck distribution a plausible and low-friction attack vector. Scope is unchanged (S:U), so compromise does not directly pivot to other systems, but exfiltration over the network makes this a meaningful data-theft risk for individual users.

Exploit ScenarioDerived

An attacker publishes a malicious Anki deck package (.apkg) - disguised as a legitimate study resource - to a community sharing site or delivers it via phishing. When a victim imports the deck, an embedded iframe loads and calls the unprotected internal localhost API method getImageForOcclusion or similar endpoints to read sensitive files (e.g., SSH private keys, stored credentials) from the victim's filesystem and transmits them to an attacker-controlled server via outbound HTTP. No public POC exploit code has been identified at time of analysis, but the described attack path is straightforward given the documented API exposure.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 07, 2026

Arbitrary file read and exfiltration in Anki prior to 25.09.4 allows a remote attacker to access sensitive files on a victim's system by distributing a maliciously crafted card package (.apkg). The root cause is an origin validation failure (CWE-346) in Anki's internal localhost API, which fails to block iframe-embedded scripts from accessing privileged backend methods such as getImageForOcclusion. Exploitation requires the victim to import the malicious deck; no public exploit code or CISA KEV listing has been identified at time of analysis.

RemediationAI

Vendor-released patch: 25.09.4. Users should upgrade to Anki 25.09.4 immediately, available from https://github.com/ankitects/anki/releases/tag/25.09.4 and through official distribution channels. The upstream fix is documented in commit b2b68d829e853da51b5de8aad6c13b53e90bc20d. If immediate upgrade is not possible, avoid importing Anki deck packages (.apkg files) from untrusted or anonymous sources until patched, as this is the primary delivery mechanism for exploitation. There is no known configuration-level workaround that disables iframe support without degrading core editor functionality. Restricting outbound network access for the Anki process via host-based firewall rules would prevent file exfiltration but would not block the initial file read or address the root vulnerability.

Affected VersionsENISA

Anki < 25.09.4

Affected Packages

pypi aqt fix: 25.9.4
euvd anki fix: 25.09.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Anki's UI is built on a webview architecture where frontend pages communicate with a Rust backend over an internal localhost HTTP API. The editor supports iframes, and the application relies on origin-based restrictions to prevent reviewer and editor scripts from accessing sensitive API endpoints. CWE-346 (Origin Validation Error) identifies the root cause: the API does not adequately enforce origin checks, allowing iframe content - even from a third-party-controlled card package - to call privileged methods. The affected CPE is cpe:2.3:a:ankitects:anki:*:*:*:*:*:*:*:*, covering all Anki versions prior to 25.09.4 across platforms.

Know when Anki gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
vuln.today AI 6.5 MEDIUM

AV:N because malicious deck is fetched/shared over network and exfiltrates remotely; UI:R because user must import the deck; C:H for arbitrary file read; no integrity or availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

1
Patch available
Jul 07, 2026 - 23:01 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
popular desktop flashcard app with millions of student users globally
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy