# CVE-2026-77815: Infinite Image Browsing Resolves Paths With normpath, Allowing Symlink Escape From Scanned Directories

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

to_abs_path in scripts/iib/tool.py normalised the requested path with os.path.normpath, which collapses dot segments but does not resolve symbolic links. A symlink placed inside a scanned directory therefore satisfies the containment comparison performed by is_path_trusted in scripts/iib/api.py while pointing outside that directory, and FileResponse follows the link when serving the response, so a link created in an image directory and targeting a file such as /etc/passwd discloses that file. 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 resolves the path with os.path.realpath.

## 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.51% as of 2026-11-08; percentile 43.42%

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

- Weaknesses: CWE-59

## 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/tool.py#L172-L175 (CNA: VulnCheck; technical-description)

- 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-resolves-paths-with-normpath-allowing-symlink-escape-from-scanned-directories (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-77815; retrieved 2026-11-08; source updated 2026-11-08

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

Revision: 988f571d231626deb4409d8e8002fd279a677dc53c96654cde2c68f26d0b26e2

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

## 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.