url-metadata is vulnerable to Sensitive Information Disclosure
59
Medium Risk
The package follows HTTP redirects manually in main.js and re-sends the caller-configured requestHeaders on every hop. When a redirect points to a different host, credential-bearing headers such as Authorization, Cookie, Cookie2, and WWW-Authenticate are forwarded verbatim to that new host. An attacker who controls or observes a redirect target can capture credentials that were intended only for the original host. The fix adds a sensitive-header list and strips those headers when a redirect changes host, keeping them only for same-host hops.
You are affected if you are using a version that falls within the vulnerable range and you configure requestHeaders with credential-bearing headers when fetching URLs that can redirect to a different host.
url-metadata is vulnerable to Sensitive Information Disclosure in versions 5.0.0 - 5.7.2.
Upgrade the url-metadata library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant