Intel

AIKIDO-2025-10558

github.com/valyala/fasthttp is vulnerable to Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 18, 2025

40

Medium Risk

This Affects:

GOgithub.com/valyala/fasthttp
1.32.0 - 1.64.0
Fixed in 1.65.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable due to an off-by-one error in Content-Type header validation and insufficient blocking of dangerous headers (e.g., Set-Cookie and X-Forwarded-*) in HTTP trailers. Attackers could exploit this by injecting malicious trailers to bypass security controls, enabling session hijacking (via forced cookie adoption), redirect attacks (through injected Location headers), or IP spoofing (using X-Forwarded-For header) to mask their origin or trigger incorrect access decisions.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

github.com/valyala/fasthttp is vulnerable to Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') in versions 1.32.0 - 1.64.0.

How to fix this

Upgrade the github.com/valyala/fasthttp library to the patch version.