CVE-2026-54171: Excon Incomplete Header Redaction

The application manually deletes the 'Authorization' and 'Host' headers but fails to explicitly delete other sensitive headers like 'Cookie'. When this code handles HTTP redirects or request forwarding, sensitive headers left intact can be inadvertently exposed to untrusted third parties. Ensure a comprehensive list of security-sensitive headers is redacted.

Provally CuratedPublic repositoryMediumHigh confidenceVerifiedApache-2.0Ruby
greprules fetch cve-2026-54171-excon-incomplete-header-redaction --engine opengrep

Description

The application manually deletes the 'Authorization' and 'Host' headers but fails to explicitly delete other sensitive headers like 'Cookie'. When this code handles HTTP redirects or request forwarding, sensitive headers left intact can be inadvertently exposed to untrusted third parties. Ensure a comprehensive list of security-sensitive headers is redacted.