Vulnerabilities in pkg:golang/github.com/dadrus/heimdall
PACKAGECVE-2026-57209 is a HIGH forwarded header injection vulnerability (CWE-20: Improper Input Validation) affecting Heimdall libraries in the Go ecosystem. The issue involves forwarded header injection via unsanitized host header in proxy mode. Remediation is available by upgrading affected packages to version 0.17.17.
pkg:golang/github.com/dadrus/heimdall
Vulnerability advisories affecting package pkg:golang/github.com/dadrus/heimdall. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-4jgr-pg2m-m988 | CVE-2026-57209 | HIGH | Heimdall: Forwarded Header Injection via Unsanitized Host Header in Proxy Mode |
| GHSA-3q34-rx83-r6mq | CVE-2026-42274 | HIGH | Heimdall has an authorization bypass via path normalization mismatch |
| GHSA-72h4-mxfc-jx37 | CVE-2026-42273 | HIGH | Heimdall: Case-sensitive host matching may lead to policy bypass |
| GHSA-43jv-5j4x-qv67 | CVE-2026-42272 | HIGH | Heimdall: Case-sensitive handling of URL-encoded slashes may lead to inconsistent path interpretation |
| GHSA-r8x2-fhmf-6mxp | CVE-2026-32811 | HIGH | Heimdall: Path received via Envoy gRPC corrupted when containing query string |
CVE-2026-57209 at a Glance
How to Fix CVE-2026-57209
To remediate this vulnerability, upgrade all affected Heimdall dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/dadrus/heimdall to 0.17.17
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/dadrus/heimdall
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-57209, inspect your project dependencies for Heimdall:
inspect dependencies for github.com/dadrus/heimdall
Analyze the terminal output to locate any version of Heimdall in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.17.17), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Heimdall, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-57209 Affected Heimdall Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/dadrus/heimdall
|
Go |
< 0.17.17
|
0.17.17
|
References
Frequently Asked Questions
What is CVE-2026-57209?
Which Heimdall versions are affected?
What version fixes CVE-2026-57209?
Is github.com/dadrus/heimdall affected?
What CWE is associated with CVE-2026-57209?
How can I check Go dependencies for CVE-2026-57209?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4jgr-pg2m-m988",
"modified" : "2026-07-20T21:28:46Z",
"published" : "2026-06-18T14:24:41Z",
"aliases" : [ "CVE-2026-57209" ],
"summary" : "Heimdall: Forwarded Header Injection via Unsanitized Host Header in Proxy Mode",
"details" : "### Summary\n\nWhen Heimdall operates in proxy mode, it constructs the `Forwarded` HTTP header after executing the matched rule pipeline by inserting the incoming request's `Host` header value directly into the header string without sanitizing commas or semicolons. This allows an attacker to inject additional parameters into the `Forwarded` header, potentially spoofing IP addresses for upstream services.\n\n### Vulnerable Code\n\n**File: `proxy/request_context.go` (line 201)**\n\n```go\nentry := \"for=\" + clientIP + \";host=\" + in.Host + \";proto=\" + proto\n```\n\nGo's `net/http` allows commas and semicolons in Host header values. No sanitization is applied before string concatenation.\n\n### PoC\n\n```bash\n# Inject a spoofed IP into the Forwarded header\ncurl -s -H \"Host: evil.com,for=127.0.0.1\" \\\n \"http://TARGET:PORT/protected-resource\"\n```\n\nThis produces the following `Forwarded` header sent to the upstream service:\n\n```\nForwarded: for=1.2.3.4;host=evil.com, for=127.0.0.1;proto=http\n```\n\nUpstream services that parse the `Forwarded` header according to RFC 7239 will see two entries. If the service trusts the last or any `for=` value, the attacker successfully spoofs `127.0.0.1` as the client IP.\n\n```bash\n# More targeted attack: spoof to bypass IP allowlist\ncurl -s -H \"Host: legit.com;for=10.0.0.1;proto=https,for=192.168.1.1\" \\\n \"http://TARGET:PORT/admin-panel\"\n```\n\n### Impact\n\n- **IP spoofing:** Upstream services behind Heimdall may trust the injected `for=` value, believing the request originates from an internal/trusted IP\n- **Access control bypass:** Applications that restrict access based on IP address by themselves, without using the corresponding heimdall capabilities (e.g., admin panels, internal APIs), can be bypassed\n- **Affects all proxy-mode deployments** where upstream services parse the `Forwarded` header.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/dadrus/heimdall"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.17.17"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.17.16"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/dadrus/heimdall/security/advisories/GHSA-4jgr-pg2m-m988"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/dadrus/heimdall"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-74" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-18T14:24:41Z",
"nvd_published_at" : null
}
}