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-2023-7260High· 7.5Path Traversal vulnerability discovered in OpenText™ CX-E Voice, affecting all version through 22.4
CVE-2023-7249Critical· 9.8Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in OpenText OpenText Directory Services allows Path Traversal.This issue affects OpenText Directory Services: from 16.4.2 before 24.1.
CVE-2020-3365Medium· 4.3A vulnerability in the directory permissions of Cisco Enterprise NFV Infrastructure Software (NFVIS) could allow an authenticated, remote attacker to perform a directory traversal attack on a limited set of restricted directories