Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. aqt
  4. ›
  5. GHSA-cw6h-ffmh-x6vh

GHSA-cw6h-ffmh-x6vh: Anki: User scripts in iframes have access to the internal Anki API

June 19, 2026

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)

References

  • github.com/advisories/GHSA-cw6h-ffmh-x6vh
  • github.com/ankitects/anki/security/advisories/GHSA-cw6h-ffmh-x6vh

Code Behaviors & Features

Detect and mitigate GHSA-cw6h-ffmh-x6vh with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 25.9.4

Fixed versions

  • 25.9.4

Solution

Upgrade to version 25.9.4 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/aqt/GHSA-cw6h-ffmh-x6vh.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:58 +0000.