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
Share

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

2
Patch available
Jul 07, 2026 - 23:01 EUVD
Analysis Generated
Jul 07, 2026 - 22:11 vuln.today

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 pypi packages depend on aqt (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 25.9.4.

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.

AnalysisAI

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.

Technical ContextAI

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.

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.

Share

CVE-2026-58266 vulnerability details – vuln.today

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