Junglewise Threat Intelligence

CVE-2022-24719: fluture-js fluture-node sensitive header leak on redirect

CVE-2022-24719 · Severity: low · CVSS 3.1 · Published 2022-03-01

Vendors: PyPI, npm.

Executive brief

fluture-node is a utility library used for handling web requests in Node.js applications. A security flaw in versions 4.0.0 and 4.0.1 fails to remove sensitive login information, such as passwords or session cookies, when a website redirects a user to a different, potentially malicious domain. This could allow an attacker to steal user credentials or session data if they control the destination of a redirect.

Technical details

The vulnerability is a sensitive information leak (CWE-212/CWE-200) within the redirection logic of fluture-node. When using the `followRedirects` or `followRedirectsWith` functions, the library fails to strip confidential headers (e.g., Authorization, Cookie) if the request is redirected to a third-party domain or from HTTPS to an unencrypted HTTP connection. An attacker who can trigger or control a redirect from a trusted server to an attacker-controlled origin can capture these sensitive headers. The issue is fixed in version 4.0.2, which introduces automatic header redaction across different origins.

Affected products

  • fluture-js fluture-node >= 4.0.0, < 4.0.2

Timeline

  • 2022-03-01: disclosed
  • 2022-03-01: patched
  • 2022-03-01: advisory

References