Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-55677: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in labstack echo

0
High
VulnerabilityCVE-2026-55677cvecve-2026-55677cwe-22
Published: 06/26/2026 (06/26/2026, 16:15:55 UTC)
Source: CVE Database V5
Vendor/Project: labstack
Product: echo

Description

Echo is a Go web framework. Prior to 4.15.3 and 5.2.0, Echo's router and static file handler disagree on URL path decoding. The router matches routes using the raw encoded path (preserving %2F as-is), while StaticDirectoryHandler unescapes %2F to / before resolving filesystem paths. This allows an attacker to bypass route-level access controls and read static files without authorization. This vulnerability is fixed in 4.15.3 and 5.2.0.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected software

github.com/labstack/echo
pkg:golang/github.com/labstack/echo
Affected versions
<4.15.3<5.2.0

Run 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

AILast updated: 06/26/2026, 17:06:56 UTC

Technical Analysis

In labstack Echo versions before 4.15.3 and 5.2.0, the router matches routes using the raw encoded URL path, preserving encoded slashes (%2F), while the StaticDirectoryHandler unescapes %2F to a slash before resolving filesystem paths. This discrepancy enables an attacker to bypass route-level access controls and access static files without authorization, constituting a path traversal vulnerability (CWE-22). The vulnerability is addressed by synchronizing path decoding behavior in Echo versions 4.15.3 and 5.2.0.

Potential Impact

An attacker can exploit this vulnerability to read static files on the server without proper authorization, potentially exposing sensitive information. The vulnerability does not affect integrity or availability but impacts confidentiality. The CVSS score of 7.5 reflects a high severity with network attack vector, low attack complexity, no privileges required, and no user interaction needed.

Mitigation Recommendations

This vulnerability is fixed in labstack Echo versions 4.15.3 and 5.2.0. Users should upgrade to at least these versions to remediate the issue. No other official remediation or temporary fixes are indicated. Patch status is confirmed by the vendor advisory stating the fix is included in these versions.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-17T00:05:03.778Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a3eae476e08203f7dc7e0cb

Added to database: 06/26/2026, 16:52:23 UTC

Last enriched: 06/26/2026, 17:06:56 UTC

Last updated: 06/27/2026, 05:50:05 UTC

Views: 13

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses