Skip to main content
CVE Radar
medium

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

Affects

Labstack

4 products listed

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.

CISA

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.

Affected vendors, products and versions
VendorProductVersionsStatus
Labstackecho>= 5.0.0, < 5.4.0Vulnerable
Labstackecho< 4.16.0Vulnerable
Gogithub.com/labstack/echo/v5< 5.4.0Vulnerable
Gogithub.com/labstack/echo/v4< 4.16.0Vulnerable

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.

Every CVSS base score collected, by source and version
ScoreVersionSeverityExpl.ImpactSource
5.9CVSS 3.1medium1.64.2GitHub (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.

MITRE

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.

CAPEC-111 · JSON Hijacking (aka JavaScript Hijacking)CAPEC-141 · Cache PoisoningCAPEC-142 · DNS Cache PoisoningCAPEC-160 · Exploit Script-Based APIsCAPEC-21 · Exploitation of Trusted IdentifiersCAPEC-384 · Application API Message Manipulation via Man-in-the-MiddleCAPEC-385 · Transaction or Event Tampering via Application API ManipulationCAPEC-386 · Application API Navigation RemappingCAPEC-387 · Navigation Remapping To Propagate Malicious ContentCAPEC-388 · Application API Button HijackingCAPEC-510 · SaaS User Request ForgeryCAPEC-59 · Session Credential Falsification through Prediction
  • 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.
web/proxy/WAF logsapplication logsnetwork IDS/IPS

Timeline

What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.

  1. 2026
  2. Added · CVSS 3.1 5.9 (AV:N)

    Oct 28, 2026 · NVD

  3. Initial · CVE published

    Oct 28, 2026 · NVD

  4. Added · GHSA-2ffq-g2xg-c22p published (medium)

    Oct 28, 2026 · GitHub Security Advisory

  5. CVE published by MITRE.

    Oct 28, 2026 · SOCRadar CTI

References

6 on the record

Coverage

1 story from the feeds we poll

Related CVEs

Same product first, then the same weakness or threat actor.

Elsewhere on this site

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.