Intel

AIKIDO-2026-10148

github.com/labstack/echo/v5 is vulnerable to Exposure of Information Through Directory Listing

Exposure of Information Through Directory Listing Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

81

High Risk

This Affects:

GOgithub.com/labstack/echo/v5
5.0.0 - 5.0.1
Fixed in 5.0.2

TL;DR

Affected versions of this package allow unintended directory disclosure when StaticWithConfig is used with Browse: true and no index file exists: directory listings are generated from the filesystem root instead of being constrained to StaticConfig.Root. An attacker can exploit this by requesting a browsable path (e.g., /) to enumerate files and directories outside the intended public directory, potentially discovering sensitive filenames, structure, and metadata such as sizes.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you set config.Browse=true.

Background info

github.com/labstack/echo/v5 is vulnerable to Exposure of Information Through Directory Listing in versions 5.0.0 - 5.0.1.

How to fix this

Upgrade the github.com/labstack/echo/v5 library to the patch version.