url-metadata is vulnerable to Sensitive Information Disclosure
59
CVSS Score
Medium
Sensitive Information Disclosure
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.
Upgrade the url-metadata library to the patch version.
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.
5.0.0 - 5.7.2
Fixed in 5.7.3url-metadata is vulnerable to Sensitive Information Disclosure in versions 5.0.0 - 5.7.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.