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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.133% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 5.9 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
Assessment source · checked 2026-11-19T12:58:01.038Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:58:01.038Z | CVE Program |
| epss | verified | 2026-11-19T16:04:45.325Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:38.976Z | OSV |
| affected | verified | 2026-11-19T12:58:01.038Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:58:01.038Z | CVE Program |
Affected versions and configuration
labstack echo; default status: unknown: >= 5.0.0, < 5.4.0 [affected; scheme: unspecified]; < 4.16.0 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "labstack",
"product": "echo",
"versions": [
{
"status": "affected",
"version": ">= 5.0.0, < 5.4.0"
},
{
"status": "affected",
"version": "< 4.16.0"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-118657",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-11-03T13:31:34.902517Z"
}
}
}
],
"references": [
{
"url": "https://github.com/labstack/echo/security/advisories/GHSA-2ffq-g2xg-c22p",
"tags": [
"exploit"
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-11-03T13:32:02.816Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-2ffq-g2xg-c22p",
"aliases": [
"CVE-2026-118657",
"GO-2026-6879"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.16.0"
}
]
}
],
"package": {
"name": "github.com/labstack/echo/v4",
"purl": "pkg:golang/github.com/labstack/echo/v4",
"ecosystem": "Go"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-2ffq-g2xg-c22p/GHSA-2ffq-g2xg-c22p.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/labstack/echo/security/advisories/GHSA-2ffq-g2xg-c22p",
"type": "WEB"
},
{
"url": "https://github.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1",
"type": "WEB"
},
{
"url": "https://github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af",
"type": "WEB"
},
{
"url": "https://github.com/labstack/echo",
"type": "PACKAGE"
},
{
"url": "https://github.com/labstack/echo/releases/tag/v4.16.0",
"type": "WEB"
},
{
"url": "https://github.com/labstack/echo/releases/tag/v5.4.0",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-346"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2026-10-28T21:04:52Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "GO-2026-6879",
"aliases": [
"CVE-2026-118657",
"GHSA-2ffq-g2xg-c22p"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.16.0"
}
]
}
],
"package": {
"name": "github.com/labstack/echo/v4",
"purl": "pkg:golang/github.com/labstack/echo/v4",
"ecosystem": "Go"
},
"versions": [],
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2026-6879.json"
},
"ecosystem_specific": {
"imports": [
{
"path": "github.com/labstack/echo/v4/middleware",
"symbols": [
"MethodOverride",
"MethodOverrideWithConfig",
"Proxy",
"ProxyWithConfig",
"Secure",
"SecureWithConfig",
"Static",
"StaticWithConfig",
"sanitizeURI"
]
},
{
"path": "github.com/labstack/echo/v4",
"symbols": [
"Echo.ServeHTTP",
"Echo.Start",
"Echo.StartAutoTLS",
"Echo.StartH2CServer",
"Echo.StartServer",
"Echo.StartTLS",
"Echo.Static",
"Echo.StaticFS",
"Group.Static",
"Group.StaticFS",
"StaticDirectoryHandler",
"context.JSONP",
"context.JSONPBlob",
"context.Scheme",
"context.jsonPBlob",
"isValidProto",
"sanitizeURI"
]
}
]
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/labstack/echo/security/advisories/GHSA-2ffq-g2xg-c22p",
"type": "ADVISORY"
},
{
"url": "https://github.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1",
"type": "FIX"
},
{
"url": "https://github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af",
"type": "FIX"
},
{
"url": "https://github.com/labstack/echo/releases/tag/v4.16.0",
"type": "WEB"
},
{
"url": "https://github.com/labstack/echo/releases/tag/v5.4.0",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2026-6879",
"review_status": "REVIEWED"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Go / package | github.com/labstack/echo/v4 | Not a distribution channel | 4.16.0 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:38.976ZArchived source JSON
Source publication: 2026-10-28T21:04:52.000Z
Source modification: 2026-11-05T23:26:14.128ZDocument fingerprint
cd7e0dbe7a53138b3e44880e94bfb79aaf1f7a7c443172587502ffa637a5c3de - OSVConsulted: 2026-11-19T12:52:38.976ZArchived source JSON
Source publication: 2026-11-05T22:54:32.000Z
Source modification: 2026-11-05T23:15:17.176ZDocument fingerprint
cd7e0dbe7a53138b3e44880e94bfb79aaf1f7a7c443172587502ffa637a5c3de - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - CVE ProgramConsulted: 2026-11-19T12:58:01.038ZArchived source JSON
Source publication: 2026-10-28T20:14:09.883Z
Source modification: 2026-11-03T13:32:02.816ZDocument fingerprint
b21e525244e756984b833b3c8d6eebd428d60043a9bfbe4993ed005fdad34bd4 - FIRST EPSSConsulted: 2026-11-19T16:04:45.325ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
287847b77149ef96b0d35ecb7d3235d10f01e8da070f7646330892872b613f55
Official status history
- UNKNOWN → PUBLISHED · · evidence