Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessVictim imports malicious shared deck or visits attacker-controlled site
-
DeliveryEmbedded script targets Anki local HTTP server
-
ExploitCrafted path bypasses directory boundary check
-
ExecutionLocal HTTP server returns out-of-bounds file contents
-
ImpactScript exfiltrates file data to attacker server
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Anki must be actively running with its local HTTP server enabled, which occurs by default whenever the application is open - no special configuration is required to expose this server. For the shared deck vector: the victim must import and actively review a deck containing malicious JavaScript, which requires deliberate user action (UI:A per CVSS 4.0). For the malicious website vector: the attacker must first defeat Anki's origin check (the CVSS AT:P flag confirms a specific precondition applies here, though the exact bypass mechanism is not fully detailed in the advisory). Exploitation is strictly limited to reading files accessible under the permissions of the Anki process user - no write, execute, or privilege escalation is possible. The attack does not work if Anki is closed, if the user only reviews decks from fully trusted sources in isolation, or if network egress from the local machine to attacker infrastructure is blocked (preventing exfiltration, though the read itself may still occur). |
| Impact | The CVSS 4.0 score of 5.9 reflects a network-reachable, low-complexity flaw requiring active user interaction (UI:A) and specific attack requirements (AT:P - Anki must be running). Confidentiality impact is rated high (VC:H) because successful exploitation allows reading arbitrary files accessible to the Anki process user. Integrity and availability are unaffected. No EPSS score was provided in the input data, so exploitation probability cannot be quantified numerically. No CISA KEV listing is present, and no public proof-of-concept exploit has been identified. The realistic threat model centers on the AnkiWeb shared deck ecosystem, where a malicious deck author could embed JavaScript that, when a victim reviews the deck, traverses to sensitive local paths. The origin-check bypass widens the attack surface to drive-by web scenarios. Real-world priority is moderate: the user interaction requirement limits mass exploitation, but the combination of a large and trusting user community accustomed to importing third-party decks and the high-value file read primitive elevates urgency above a low-risk CVSS rating alone. |
| Exploit ScenarioDerived | An attacker publishes a shared deck on AnkiWeb containing a card template with embedded JavaScript that issues a fetch request to Anki's local HTTP server using a traversal path such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 06, 2026
Directory traversal in Anki's local HTTP server (versions prior to 25.09.3) exposes arbitrary local files to scripts embedded in shared decks or to malicious websites exploiting an origin-check bypass. The flaw exists in both the media file endpoint and the built-in data path endpoint within qt/aqt/mediasrv.py, where path boundary checks were either absent or bypassable via the missing os.sep suffix. No public exploit code or CISA KEV listing has been identified at time of analysis, but the high confidentiality impact (VC:H) and the realistic social-engineering vector through the AnkiWeb shared deck ecosystem make this a credible threat to active Anki users.
RemediationAI
Upgrade to Anki 25.09.3 or later, which is the vendor-confirmed fixed release per advisory GHSA-78wr-2gg2-4hqg (https://github.com/ankitects/anki/security/advisories/GHSA-78wr-2gg2-4hqg). The fix enforces proper path boundary checks in both media and built-in data handlers. If an immediate upgrade is not possible, two compensating controls are available with trade-offs: first, avoid importing or reviewing decks from untrusted sources on AnkiWeb or third-party repositories - this eliminates the shared-deck vector but does not address the malicious-website vector; second, close or quit Anki while browsing untrusted websites, which eliminates the origin-bypass vector but is operationally disruptive. There is no configuration option to disable the local HTTP server independently without breaking core Anki functionality, so patching is the only complete remediation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Anki runs a local HTTP server (mediasrv.py) to serve media files and built-in application data when a user is reviewing flashcards. The root cause (CWE-22, Improper Limitation of a Pathname to a Restricted Directory) manifested in two distinct places: (1) the _handle_local_file_request handler used fullpath.startswith(directory) without appending os.sep, meaning a crafted path whose resolved absolute form began with the base directory string but escaped it (e.g., /media/../secret) could satisfy the check; (2) _handle_builtin_file_request explicitly constructed paths as aqt_data_path() / '..' / path, inherently stepping one directory above the data folder before applying any user-supplied path. The fix introduces ensure_safe_path(), which normalizes the base via os.path.realpath(), resolves the candidate path with os.path.abspath(), and enforces containment with startswith(base_dir + os.sep), catching both bypass vectors. An additional attack surface is an origin-check bypass that allows malicious external websites to reach this local HTTP server.
Know when the next one hits your stack
- 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
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Network vector via local HTTP server, no privileges needed, but active user interaction required (open deck or visit site); confidentiality is high due to arbitrary local file read, with no integrity or availability impact.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
Anki is a program for creating and reviewing flashcards. Prior to 25.09.3, endpoints in Anki's local HTTP server do not adequately constrain requested media and built-in data paths, allowing scripts served from shared decks, or malicious websites combined with an origin-check bypass, to read local files through directory traversal. This issue is fixed in version 25.09.3.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-54206
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB