# CVE-2026-59153: Ankitects Anki origin validation error in local HTTP server

Source: https://junglewise.ai/threats/cve-2026-59153-ankitects-anki-origin-validation-error-in-local-http-server  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07. Updated: 2026-07-07  
License: CC BY 4.0 with a link back

CVE-2026-59153 · Severity: medium · CVSS 4 · Published 2026-07-07

Anki, a popular flashcard and language learning application, contains a vulnerability in its internal media server. A malicious website visited by a user could send unauthorized commands to the Anki application running on the same computer. This could allow an attacker to read local files or trigger unintended actions within the software, potentially compromising user data or privacy.

Technologies: [Ankitects Anki](https://junglewise.ai/threats/technologies/anki). Vendors: [Ankitects](https://junglewise.ai/threats/vendors/ankitects), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-59153 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-59153 being exploited in the wild.

**How severe is CVE-2026-59153?** Medium severity, with a CVSS score of 4, published 7 July 2026.

**Which products and versions are affected?** Ankitects Anki < 25.09.3; aqt (PyPI) ECOSYSTEM:introduced=0,fixed=25.9.3.

**Is there a fix for CVE-2026-59153?** Yes. aqt (PyPI): upgrade to 25.9.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-59153 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-59153?** Check whether you run Ankitects Anki or aqt (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- aqt (PyPI): upgrade to 25.9.3 or later

  ```sh
  pip install "aqt>=25.9.3"
  ```


## Technical details

Anki versions prior to 25.09.3 launch a local HTTP server to serve media and interface components. The server fails to properly validate the 'Origin' and 'Host' headers, leading to an origin validation error (CWE-346). An attacker can exploit this by enticing a user to visit a malicious website, which then makes cross-origin requests to the local Anki server. The impact is highest on browsers like Firefox and Safari that lack robust Private Network Access (PNA) protections, potentially allowing the attacker to read local files or execute state-changing actions. The issue was addressed in version 25.09.3 by fixing a variable shadowing bug that interfered with host validation logic.

## Affected products

- Ankitects Anki < 25.09.3

## Identifiers

- CVE-2026-59153
- GHSA-869j-r97x-hx2g
- PYSEC-2026-3459

## Timeline

- 2026-05-04: disclosed: Initial discovery/report by Tavis Ormandy
- 2026-05-07: patched: Version 25.09.3 released
- 2026-06-19: advisory: GitHub Security Advisory published
- 2026-07-07: advisory: CVE published to NVD

## References

- [https://github.com/ankitects/anki/commit/858e5689d0e4fd24f74856c7e8f245412694a219](https://github.com/ankitects/anki/commit/858e5689d0e4fd24f74856c7e8f245412694a219)
- [https://github.com/ankitects/anki/releases/tag/25.09.3](https://github.com/ankitects/anki/releases/tag/25.09.3)
- [https://github.com/ankitects/anki/security/advisories/GHSA-869j-r97x-hx2g](https://github.com/ankitects/anki/security/advisories/GHSA-869j-r97x-hx2g)
- [https://x.com/taviso/status/2051310678800253318](https://x.com/taviso/status/2051310678800253318)

## Related threats

- [Anki local HTTP server directory traversal](https://junglewise.ai/threats/cve-2026-64677-anki-local-http-server-directory-traversal)
- [Ankitects Anki arbitrary file read via iframe API bypass](https://junglewise.ai/threats/cve-2026-58266-ankitects-anki-arbitrary-file-read-via-iframe-api-bypass)
