# CVE-2026-77814: Infinite Image Browsing is_path_trusted Prefix Comparison Omits the Trailing Path Separator

Status: published. Published: 2026-08-21. Updated: 2026-11-08.

is_path_trusted in scripts/iib/api.py compares the requested path against each allowed parent directory with path.startswith(parent_path), without appending a path separator. A directory whose name merely begins with an allowed path therefore satisfies the comparison, so where /data/images is allowed a request for /data/images_private/secret.txt is treated as trusted and served by FileResponse, disclosing files the confinement was meant to exclude. Whether the check applies depends on get_enable_access_control in scripts/iib/tool.py: it returns true when IIB_ACCESS_CONTROL is set to enable, false when set to disable, and otherwise true when the host Stable Diffusion WebUI was started with share, ngrok, listen or server_name, falling back to false. Confinement is therefore active in the network-exposed WebUI deployments that rely on it, while a standalone run with no such option serves every readable file regardless of this flaw. The fix compares against parent_path joined with os.sep.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: VulnCheck) — https://github.com/zanllp/infinite-image-browsing/pull/969
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: VulnCheck) — https://github.com/zanllp/infinite-image-browsing/commit/4057a624c7a23a36f0b4dc6a545b40767d602450

## Affected products and versions

- zanllp / infinite-image-browsing: ≥ 0; ≤ 1.8.0 (affected, semver). Source: CNA: VulnCheck

## Severity and prioritization

- CVSS 4.0: 8.7 (high); CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N; source: CNA: VulnCheck

- CVSS 3.1: 7.5 (high); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N; source: CNA: VulnCheck

- CISA KEV: No listing in collected sources

- EPSS: 0.50% as of 2026-11-08; percentile 43.36%

- SSVC: exploitation poc; automatable yes; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-22

## Exploit evidence

- exploit: https://github.com/zanllp/infinite-image-browsing/issues/968 (ADP: CISA-ADP)

## References

- https://github.com/zanllp/infinite-image-browsing/issues/968 (CNA: VulnCheck; issue-tracking)

- https://github.com/zanllp/infinite-image-browsing/pull/969 (CNA: VulnCheck; issue-tracking, patch)

- https://github.com/zanllp/infinite-image-browsing/commit/4057a624c7a23a36f0b4dc6a545b40767d602450 (CNA: VulnCheck; patch)

- https://github.com/zanllp/infinite-image-browsing/blob/v1.8.0/scripts/iib/api.py#L329-L344 (CNA: VulnCheck; technical-description)

- https://github.com/zanllp/infinite-image-browsing (CNA: VulnCheck; product)

- https://www.vulncheck.com/advisories/infinite-image-browsing-is-path-trusted-prefix-comparison-omits-the-trailing-path-separator (CNA: VulnCheck; third-party-advisory)

- https://github.com/zanllp/infinite-image-browsing/issues/968 (ADP: CISA-ADP; exploit)

## Provenance

- CNA: VulnCheck: https://www.cve.org/CVERecord?id=CVE-2026-77814; retrieved 2026-11-08; source updated 2026-11-08

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-77814; retrieved 2026-11-08; source updated Not reported

Revision: 15aec271953eb75c5212201aa9c4b069c0d28a1ae442d37ce6cb8b53203e4af4

Canonical: https://y2.dev/cve/CVE-2026-77814

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.