Categories
CVE-2026-58266 medium CVSS 6.5

Path Traversal in aqt (CVE-2026-58266)

Summary

Path traversal in aqt (CVE-2026-58266). Confidential information can be exposed externally. Exploitable via getImageForOcclusion. Mitigation: upgrade to 25.9.4 or later.

Original description

The description as published by the source.

Summary

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)

Affected Products

Ecosystem Package Affected Versions
PyPI aqt <= 25.09.3

Impact

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.

Patches

A patch is available in 25.09.4

Workarounds

  • Do not import .apkg files from untrusted sources.
  • Inspect .apkg contents (it's a ZIP) for .html/.svg files with `` tags before importing.
  • Block unexpected outbound network requests from the Anki process at the firewall level.

References

  • Vulnerability report: Anki arbitrary file read vulnerability (with exfiltration) — Bankde (Eakasit)
  • Affected source: [qt/aqt/mediasrv.py::_handle_local_file_request](https://github.com/ankitects/anki/blob/5…

Source: NIST National Vulnerability Database NVD GitHub Advisory

Auto-generated summary

Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.

A vulnerability tracked as CVE-2026-58266 has been found in aqt.
Attackers can target a specific entry point like getImageForOcclusion over the network to misuse the product.
Confidential information can be exposed externally. CVSS score: 6.5/10.
What to do: upgrade aqt to 25.9.4 or later.
If unsure, ask your IT team or search "aqt CVE-2026-58266" on the vendor's site.

CVE-2026-58266 (aqt) — CWE-22 / CVSS v3 6.5
Attack vector: remote (network-reachable) / unauthenticated
Attack surface: getImageForOcclusion / aqt
Patched: 25.9.4 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

❓ What is the problem

Path traversal (CWE-22) exists in aqt. Attackers reach the vulnerable code path via getImageForOcclusion without authentication.

📍 Affected scope

Check the vendor advisory for the affected versions of aqt. Attack surface: getImageForOcclusion / aqt.

🔥 Severity

Severity: Medium (CVSS 6.5/10). Confidential information can be exposed externally.

🔧 How to fix

Update to 25.9.4.

🛡️ Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

🔍 Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'aqt' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposure identify
    grep -r 'aqt' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で aqt を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply patch patch
    Upgrade aqt to 25.9.4

    ステージング環境で 25.9.4 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verification verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PyPI aqt
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"25.9.4"}]}]

Fix status by distribution

Fixed packages published by each distribution for this CVE

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details