# CVE-2026-58266: Anki: User scripts in iframes have access to the internal Anki API

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-06-19T22:10:19.000Z
- Modified: 2026-10-25T20:10:00.147Z
- Also known as: GHSA-cw6h-ffmh-x6vh
- Weaknesses: CWE-22, CWE-346
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- ankitects anki: < 25.09.4
- aqt (PyPI): before 25.9.4

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`

## References

- <https://github.com/ankitects/anki/security/advisories/GHSA-cw6h-ffmh-x6vh> (web)
- <https://github.com/ankitects/anki/commit/b2b68d829e853da51b5de8aad6c13b53e90bc20d>
- <https://github.com/ankitects/anki/releases/tag/25.09.4>
- <https://github.com/ankitects/anki> (package)

## Sources

- CVE List: [CVE-2026-58266](https://www.cve.org/CVERecord?id=CVE-2026-58266), CVE Terms of Use, modified 2026-07-08
- GitHub Advisory Database: [GHSA-cw6h-ffmh-x6vh](https://github.com/advisories/GHSA-cw6h-ffmh-x6vh), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2026-58266](https://nvd.nist.gov/vuln/detail/CVE-2026-58266), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-58266 · Whole record: https://cve.day/CVE-2026-58266.json · Rebuilt by cve.day 2026-11-25T22:59:27.327Z
