aqt
Affected
- introduced
0, fixed25.9.4(ecosystem)
Fixed versions
25.9.4
Fix
- Fixed version
25.9.4pip install --upgrade aqt==25.9.4
Advisory
Also known as: CVE-2026-58266
Anki: User scripts in iframes have access to the internal Anki API
Summary
Anki's webview-based pages communicate with the Rust backend using an internal localhost API. Anki implements measures to prevent user scripts run in the reviewer/editor from accessing this API (https://github.com/ankitects/anki/pull/3925) but it inadvertently allows access to scripts included via iframes in the editor. While overall only a limited set of API methods are exposed, some such as getImageForOcclusion can read arbitrary files.
CWE: CWE-22 (Path Traversal)
Reporter: Bankde (Eakasit)
Affected Products
| Ecosystem | Package | Affected Versions |
| --------- | ------- | ----------------- |
| PyPI | aqt | <= 25.09.3 |
Impact
Any desktop Anki user (Windows, macOS, Linux) who imports an untrusted .apkg and views card with an embedded iframe is vulnerable. No special configuration is required. The attacker can read any file accessible to the Anki process and exfiltrate its contents over the network.
Patches
A patch is available in 25.09.4
Workarounds
.apkg files from untrusted sources..apkg contents (it's a ZIP) for .html/.svg files with <script> tags before importing.References
Medium Basis: The source's own band: MODERATE
0, fixed 25.9.4 (ecosystem)25.9.4
25.9.4pip install --upgrade aqt==25.9.4Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0