製品・ソフトウェアに関する情報
benoitcのhackneyにおけるオープンリダイレクトの脆弱性
Title benoitcのhackneyにおけるオープンリダイレクトの脆弱性
Summary

benoitc hackneyにおける機密データ漏洩の脆弱性により、埋め込まれた機密データを取得することが可能です。src/hackney_h3.erlのHTTP/3リダイレクトハンドラは、クロスオリジンチェックを行わずに元のリクエストヘッダーをリダイレクト先にそのまま渡します。クライアントがfollow_redirectを有効にしてAuthorizationまたはCookieヘッダーを含むHTTP/3リクエストを発行した場合、3xxリダイレクトで異なるホストに応答するサーバーは、これらの資格情報を新しいオリジンにそのまま転送してしまいます。メインのhackney.erlモジュールにはlocation_trustedオプションで保護されたmaybe_strip_auth_on_redirect/2がありますが、hackney_h3.erlにはこの保護が全く存在しません。この問題はhackneyのバージョン3.1.1から4.0.1の間に影響を与えます。

Possible impacts ・当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 
Solution

ベンダ情報を参照して適切な対策を実施してください。

Publication Date May 25, 2026, midnight
Registration Date May 29, 2026, 11:19 a.m.
Last Update May 29, 2026, 11:19 a.m.
CVSS3.0 : 警告
Score 6.1
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected System
benoitc
hackney 3.1.1 以上 4.0.1 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年05月29日]
  掲載
May 29, 2026, 11:19 a.m.

NVD Vulnerability Information
CVE-2026-47070
Summary

Sensitive Data Exposure vulnerability in benoitc hackney allows Retrieve Embedded Sensitive Data. The HTTP/3 redirect handler in src/hackney_h3.erl passes the original request headers unchanged to the redirect target without performing any cross-origin check. When a client issues an HTTP/3 request with follow_redirect enabled and includes Authorization or Cookie headers, a server responding with a 3xx redirect to a different host will cause the client to forward those credentials verbatim to the new origin.

The main hackney.erl module has maybe_strip_auth_on_redirect/2 (guarded by the location_trusted option) to address CVE-2018-1000007, but hackney_h3.erl is missing this protection entirely.

This issue affects hackney: from 3.1.1 before 4.0.1.

Publication Date May 26, 2026, 12:16 a.m.
Registration Date May 27, 2026, 4:07 a.m.
Last Update May 27, 2026, 10:55 p.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:* 3.1.1 4.0.1
Related information, measures and tools
Common Vulnerabilities List