{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:benoitc:hackney:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0.10.0"
              },
              {
                "fixed": "4.0.1"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "5a59f57206cd5d2747a487b3cd3ef03cea3a64ae"
            },
            {
              "fixed": "c41c8d48ace8141b003f6f1de3ca6734a0c53056"
            },
            {
              "fixed": "5ccdab725c561a6f03d05a51f2d0664f98236dae"
            }
          ],
          "repo": "https://github.com/benoitc/hackney",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-gp9c-pm5m-5cxr"
  ],
  "database_specific": {
    "cna_assigner": "EEF",
    "cwe_ids": [
      "CWE-400"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47071.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "34cdbd1d20a282aacc286a89327465a3925b4c5d"
          },
          {
            "fixed": "5ccdab725c561a6f03d05a51f2d0664f98236dae"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "Uncontrolled Resource Consumption vulnerability in benoitc hackney allows Flooding. The SOCKS5 transport in src/hackney_socks5.erl correctly applies the caller-supplied timeout to the SOCKS5 negotiation phase, but then upgrades the connection to TLS using the two-argument form ssl:connect/2, which defaults to an infinite timeout. The Timeout value is in scope at the call site but is not forwarded. A hostile SOCKS5 proxy that completes the SOCKS5 handshake normally and then goes silent (or sends a partial TLS ServerHello and stalls) will cause the connecting process to block indefinitely, regardless of the connect_timeout or recv_timeout options supplied by the caller.\n\nThis issue affects hackney: from 0.10.0 before 4.0.1.",
  "id": "CVE-2026-47071",
  "modified": "2026-07-08T05:39:19.770288557Z",
  "published": "2026-05-25T14:00:41.112Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://cna.erlef.org/cves/CVE-2026-47071.html"
    },
    {
      "type": "WEB",
      "url": "https://github.com"
    },
    {
      "type": "WEB",
      "url": "https://osv.dev/vulnerability/EEF-CVE-2026-47071"
    },
    {
      "type": "WEB",
      "url": "https://repo.hex.pm"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47071.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/benoitc/hackney/security/advisories/GHSA-gp9c-pm5m-5cxr"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-47071"
    },
    {
      "type": "FIX",
      "url": "https://github.com/benoitc/hackney/commit/5ccdab725c561a6f03d05a51f2d0664f98236dae"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/benoitc/hackney"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "SOCKS5 TLS upgrade ignores caller timeout in hackney"
}