CVE-2026-118657
CVE-2026-118657 — Echo: HTTPS Redirect and HSTS Bypass via Unconditional Trust of Forwarded Scheme Headers
Echo is a Go web framework. Prior to 4.16.0 and 5.4.0, Context.Scheme unconditionally trusts forwarded scheme headers from any client. A client that reaches Echo directly over plaintext HTTP can claim an HTTPS scheme and bypass HTTPSRedirect because the request is treated as already secure. Separately, behind a TLS-terminating proxy that passes an attacker-controlled header, a claimed HTTP scheme can suppress the Strict-Transport-Security header even though the browser receives the response over HTTPS. The practical risk is reduced when a trusted proxy overwrites the headers and direct backend access is prevented, but the framework previously had no trusted-source configuration for this decision. This issue is fixed in 4.16.0 and 5.4.0.
Published Updated Sources: NVD, labstack (CNA), GitHub, GitHub Security Advisory, SOCRadar CTI
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
ahead of 8% of scored CVEs
CVSS base
5.9
medium
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
PoC
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Remediation
The vendor's own words where we have them.
Upgrade github.com/labstack/echo/v5 to 5.4.0 or later (go advisory GHSA-2ffq-g2xg-c22p).
First 24 hours
Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.
- Identify exposed assets running affected vendor/product/version combinations.
- Prioritize based on EPSS, PoC availability, and external exposure.
- Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.
Affected scope
Vendor, product and version as the advisories word them.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Labstack | echo | >= 5.0.0, < 5.4.0 | Vulnerable |
| Labstack | echo | < 4.16.0 | Vulnerable |
| Go | github.com/labstack/echo/v5 | < 5.4.0 | Vulnerable |
| Go | github.com/labstack/echo/v4 | < 4.16.0 | Vulnerable |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Availability
None
Confidentiality
High
Integrity
Low
Scope
Unchanged
Attack Complexity
High
Attack Vector
Network
Privileges Req
None
User Interaction
Required
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 5.9 | CVSS 3.1 | medium | 1.6 | 4.2 | GitHub (CNA), labstack (CNA), GHSA |
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
What this weakness leads to
MITRE's own consequences and mitigations for the weakness class — the authority's wording, not guidance derived from the CVSS vector.
CWE-346 · Origin Validation Error
- Gain Privileges or Assume Identity
- Varies by Context
Weakness & attack patterns
- CWE-346
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1557.002Adversary-in-the-Middle: ARP Cache Poisoning
- T1584.002Compromise Infrastructure: DNS Server
- T1134Access Token Manipulation
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Prioritize edge telemetry for network-reachable Echo, Github.com/labstack/echo/v5, Github.com/labstack/echo/v4.
Timeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Added · CVSS 3.1 5.9 (AV:N)
Oct 28, 2026 · NVD
Initial · CVE published
Oct 28, 2026 · NVD
Added · GHSA-2ffq-g2xg-c22p published (medium)
Oct 28, 2026 · GitHub Security Advisory
CVE published by MITRE.
Oct 28, 2026 · SOCRadar CTI
References
6 on the record
- github.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1
Exploit, Third Party Advisory, Mitre, NIST
- github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af
Exploit, Third Party Advisory, Mitre, NIST
- github.com/labstack/echo/releases/tag/v4.16.0
Exploit, Third Party Advisory, Mitre, NIST
- github.com/labstack/echo/releases/tag/v5.4.0
Exploit, Third Party Advisory, Mitre, NIST
- github.com/labstack/echo/security/advisories/GHSA-2ffq-g2xg-c22p
Exploit, Third Party Advisory, GITHUB, Mitre, NIST
- github.com/advisories/GHSA-2ffq-g2xg-c22p
Exploit, Third Party Advisory
Coverage
1 story from the feeds we poll
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-102895 GPUStack: Authentication bypass via trusted loopback source (reverse-proxy TCP peer or X-GPUStack-Real-IP header) grants unauthenticated adminCVSS 9.8 · CISA KEV
- CVE-2025-34291 Langflow <= 1.6.9 CORS Misconfiguration to Token Hijack & RCECVSS 8.8 · CISA KEV
- CVE-2015-4495 Mozilla Firefox Security Feature Bypass VulnerabilityCVSS 8.8 · CISA KEV
- CVE-2026-121529 A origin validation error vulnerability in Fortinet FortiClientMac 7.4.0 through 7.4.7, FortiClientWindows 7.4.0 through 7.4.7…CVSS 9.6
- CVE-2026-9191 Insufficient isolation of user-supplied code in Progress MarkLogic ServerCVSS 9.6
- CVE-2026-102589 Cross-instance user impersonation through image renderer JWTsCVSS 7.1
Elsewhere on this site
- Labstackevery CVE for this vendor
- Goevery CVE for this vendor
- Unclassifiedsame class
- CWE-346other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1
What should defenders know first?
CVE-2026-118657 is Echo: HTTPS Redirect and HSTS Bypass via Unconditional Trust of Forwarded Scheme Headers, a medium vulnerability affecting Echo, Github.com/labstack/echo/v5, Github.com/labstack/echo/v4 from Labstack, Go. The current evidence does not list it in CISA KEV, and the exploit status is: Active exploitation is not confirmed from current sources for CVE-2026-118657. Public exploit evidence is: A public PoC is not confirmed from current sources for CVE-2026-118657. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 5.9 describes technical severity, while EPSS 0% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.