HSEC-2026-0013: HTTP Request Smuggling in warp

Published Nov 4, 2026
·
Updated

HTTP Request Smuggling in warp

warp's HTTP/1.x request parser accepted request framing that RFC 9112 requires recipients to refuse, so a request could frame one way for a front-end proxy reading it and another way for warp behind it. Whoever reads such a request the other way sees one request where the other sees two, which smuggles a request past the proxy: past access control, request validation, logging, or WAF rules. warp's HTTP/2 support delegates parsing to the http2 package and is not affected.

Six defects were fixed in warp 3.4.17:

Transfer-Encoding and Content-Length field lines were collapsed to a single value, the last line winning. A second Content-Length could hide the first, and a second Transfer-Encoding could hide a chunked coding. Sending Content-Length together with Transfer-Encoding, or a Transfer-Encoding whose final coding is not chunked, was not refused; warp resolved the ambiguity by reading whichever framing it recognised. Content-Length values were parsed by reading the leading digits: a non-numeric value, or one too large for an Int which then wrapped, became length 0 — so the request body was read as the next request on the connection. Header field names were not validated: an obs-fold continuation line, a name containing whitespace or control characters, or an empty name became a header warp did not act on but a repairing intermediary could, including a hidden Content-Length. A bare CR or a NUL inside a header field line was accepted; an intermediary that takes a bare CR for a line terminator reads a field line where warp reads none. The chunked body parser did not keep to RFC 9112: a chunk size was the fold of whatever hex digits a line led with, a chunk not closed off by CRLF ended the body early, a size line split over several reads was mis-read, and the trailer section was left in the connection to be parsed as the next request. A chunked body cut short by the end of input was handed to the application as though it were whole (yesodweb/wai#1129), so an upload could be stored truncated and answered 200.

Exploitation of the framing defects requires a front-end — reverse proxy, load balancer, WAF — that parses the ambiguous request differently from warp; the truncated-chunk defect also affects directly exposed servers.

Resolution

warp 3.4.17 validates the framing and refuses requests it cannot frame reliably, raising InvalidRequest with the new constructors UnsupportedTransferEncoding, AmbiguousBodyLength, BadFieldName, BadHeaderLine and BadChunkedBody; the default exception response is 400, or 501 for a transfer coding warp cannot decode.

Users are advised to upgrade to warp 3.4.17 or later. The lax parsing is verified back to warp 1.3.3, the oldest source retained in the upstream repository's tags; older release series are unsupported and should be upgraded regardless.

Affected Software

1 affected componentFixes available
hackage/warp>=1.3.3<3.4.17
3.4.17

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade hackage/warp to a version that resolves this vulnerability.

    Fixed in 3.4.17
  2. Upgrade

    Upgrade warp to a version that resolves this vulnerability.

    Fixed in 3.4.17

Event History

Nov 4, 2026
Advisory Published
via OSV·12:43 PM
Data Sourced
via OSV·12:43 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments where a front-end proxy handles HTTP/1.x requests before forwarding them to warp are exposed to request-framing differences between the proxy and warp. This can allow a crafted request to bypass proxy-enforced access controls, validation, logging, or WAF rules.

2

What does an attacker need to exploit it?

An attacker needs network access to send a crafted HTTP/1.x request through a front-end proxy to warp. No privileges or user interaction are required.

3

Is HTTP/2 traffic affected?

No. warp's HTTP/2 parsing is delegated to the http2 package and is not affected by these HTTP/1.x parsing defects.

4

What version should be used to remediate the issue?

Upgrade warp to version 3.4.17, which fixes the six request-framing defects described.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203