CVE-2026-77814: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in zanllp infinite-image-browsing
CVE-2026-77814 is a high-severity path traversal vulnerability in zanllp infinite-image-browsing. The vulnerability arises from improper pathname validation in the is_path_trusted function, which incorrectly allows access to files in directories whose names start with allowed paths. This can lead to unauthorized disclosure of files outside the intended restricted directories. The vulnerability affects versions up to and including 1.8.0. The flaw is mitigated in network-exposed deployments that enable access control, but standalone runs without these options serve all readable files regardless of the flaw. A fix involves properly appending a path separator when validating paths.
AI Analysis
Technical Summary
The vulnerability in zanllp infinite-image-browsing (CVE-2026-77814) is due to improper limitation of a pathname to a restricted directory, specifically a path traversal issue. The is_path_trusted function in scripts/iib/api.py uses path.startswith(parent_path) to check if a requested path is within allowed directories but fails to append a path separator. Consequently, directories with names beginning with allowed paths (e.g., /data/images_private when /data/images is allowed) bypass the check, leading to unauthorized file disclosure via FileResponse. Access control depends on the get_enable_access_control function, which activates confinement when IIB_ACCESS_CONTROL is set to enable or when the host Stable Diffusion WebUI is started with network-exposing options (share, ngrok, listen, server_name). Standalone runs without these options do not enforce confinement, exposing all readable files. The fix corrects the check by comparing against parent_path joined with os.sep to ensure exact directory matching.
Potential Impact
This vulnerability allows an attacker to access and disclose files outside the intended restricted directories by exploiting the path traversal flaw. In network-exposed deployments with access control enabled, the flaw is active but confinement is enforced, limiting exposure. However, in standalone deployments without access control, all readable files are accessible regardless of the flaw. This can lead to sensitive data disclosure, impacting confidentiality.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves modifying the pathname validation to append a path separator when comparing paths, preventing directory name prefix bypass. Until an official fix is available, ensure that access control is enabled (IIB_ACCESS_CONTROL set to enable) and avoid standalone deployments without confinement. Monitor vendor communications for patch releases.
CVE-2026-77814: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in zanllp infinite-image-browsing
Description
CVE-2026-77814 is a high-severity path traversal vulnerability in zanllp infinite-image-browsing. The vulnerability arises from improper pathname validation in the is_path_trusted function, which incorrectly allows access to files in directories whose names start with allowed paths. This can lead to unauthorized disclosure of files outside the intended restricted directories. The vulnerability affects versions up to and including 1.8.0. The flaw is mitigated in network-exposed deployments that enable access control, but standalone runs without these options serve all readable files regardless of the flaw. A fix involves properly appending a path separator when validating paths.
CVSS v4.0
Score 8.7high
Affected software
pkg:github/infinite-image-browsingRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in zanllp infinite-image-browsing (CVE-2026-77814) is due to improper limitation of a pathname to a restricted directory, specifically a path traversal issue. The is_path_trusted function in scripts/iib/api.py uses path.startswith(parent_path) to check if a requested path is within allowed directories but fails to append a path separator. Consequently, directories with names beginning with allowed paths (e.g., /data/images_private when /data/images is allowed) bypass the check, leading to unauthorized file disclosure via FileResponse. Access control depends on the get_enable_access_control function, which activates confinement when IIB_ACCESS_CONTROL is set to enable or when the host Stable Diffusion WebUI is started with network-exposing options (share, ngrok, listen, server_name). Standalone runs without these options do not enforce confinement, exposing all readable files. The fix corrects the check by comparing against parent_path joined with os.sep to ensure exact directory matching.
Potential Impact
This vulnerability allows an attacker to access and disclose files outside the intended restricted directories by exploiting the path traversal flaw. In network-exposed deployments with access control enabled, the flaw is active but confinement is enforced, limiting exposure. However, in standalone deployments without access control, all readable files are accessible regardless of the flaw. This can lead to sensitive data disclosure, impacting confidentiality.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves modifying the pathname validation to append a path separator when comparing paths, preventing directory name prefix bypass. Until an official fix is available, ensure that access control is enabled (IIB_ACCESS_CONTROL set to enable) and avoid standalone deployments without confinement. Monitor vendor communications for patch releases.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-21T14:14:43.820Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8869e8acd9273b494e4711
Added to database: 08/21/2026, 15:08:24 UTC
Last enriched: 08/21/2026, 15:23:13 UTC
Last updated: 08/21/2026, 15:33:59 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.