GHSA-cw6h-ffmh-x6vhMedium· 6.5▾ SunlitAnki: User scripts in iframes have access to the internal Anki API
▾ Sunlit zone — Low / medium · no exploitation signal
impact 35.8 · likelihood 0 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
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)
| Ecosystem | Package | Affected Versions |
|---|---|---|
| PyPI | aqt | <= 25.09.3 |
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.
A patch is available in 25.09.4
.apkg files from untrusted sources..apkg contents (it's a ZIP) for .html/.svg files with <script> tags before importing.qt/aqt/mediasrv.py::_handle_local_file_requestaqt <= 25.9.3Upgrade to a patched release:
aqt 25.9.4Connected by shared product, vendor, weakness, or advisory.
CVE-2026-58266Medium· 6.5Anki: User scripts in iframes have access to the internal Anki API
GHSA-869j-r97x-hx2gHighAnki's local HTTP server does not sufficiently validate requests
CVE-2026-59153HighAnki's local HTTP server does not sufficiently validate requests
CVE-2022-37906Medium· 6.5An authenticated path traversal vulnerability exists in the ArubaOS command line interface
CVE-2024-13986High· 8.8Nagios XI < 2024R1.3.2 contains a remote code execution vulnerability by chaining two flaws: an arbitrary file upload and a path traversal in the Core Config Snapshots interface
CVE-2023-7260High· 7.5Path Traversal vulnerability discovered in OpenText™ CX-E Voice, affecting all version through 22.4