Information Exposure Affecting hyper package, versions >=0.12.0 <0.13.10>=0.14.2 <0.14.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.35% (73rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-HYPER-1072996
  • published12 Feb 2021
  • disclosed12 Feb 2021
  • creditUnknown

Introduced: 12 Feb 2021

CVE-2021-21299  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade hyper to version 0.13.10, 0.14.3 or higher.

Overview

hyper is a modern HTTP library.

Affected versions of this package are vulnerable to Information Exposure. The HTTP server code had a flaw that incorrectly understands some requests with multiple transfer-encoding headers to have a chunked payload, when it should have been rejected as illegal. This combined with an upstream HTTP proxy that understands the request payload boundary differently can result in "request smuggling" or "desync attacks".

To determine if vulnerable, all these things must be true:

  • Using hyper as an HTTP server (the client is not affected)
  • Using HTTP/1.1 (HTTP/2 does not use transfer-encoding),
  • Using a vulnerable HTTP proxy upstream to hyper.

CVSS Scores

version 3.1