Proxy credentials leaked in ERR_PROXY_TUNNEL error message
Node.js could include proxy credentials in the message of an ERR_PROXY_TUNNEL error when the credentials were embedded in the proxy URL. Anyone who could read those error messages, such as through logs or diagnostics, could see the credentials.
- Disclosed after 48 days
Summary by the program
A flaw in Node.js proxy tunnel error handling could expose proxy credentials in ERR_PROXY_TUNNEL error messages.
When proxy credentials are embedded in the proxy URL, they may be exposed through error handling paths and captured by logs, diagnostics, or other error consumers.
This vulnerability affects all supported release lines: Node.js 22, Node.js 24, and Node.js 26.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the error message was built from the full proxy URL, including its embedded credentials, instead of a redacted version.
Impact
Proxy credentials could be exposed to anything that captures or displays the error, such as logs and diagnostics.
What the attacker needed
Proxy URL contains credentials; error message is logged or read
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A proxy is a middle server that web traffic passes through, and it can require a username and password. This report says that when those details were part of the proxy address, Node.js could print them inside an error message, so anyone who saw the error, for example in a log file, could learn the password.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.