nodemailer is vulnerable to Information Disclosure
35
CVE Score
Low
Information Disclosure
Nodemailer's internal nmfetch HTTP client forwards the Authorization, Cookie, and Proxy-Authorization request headers to redirect targets. The origin check compares only hostname and an https to http downgrade, so a redirect to a different port on the same host still receives the sensitive headers, and a header name padded with whitespace bypasses the sensitive header filter on any redirect, including attachment href fetches made through sendMail. Applications that pass credential headers into nmfetch, directly or through an attachment href, can have those credentials forwarded to a redirect target outside the original origin. The fix treats any change in scheme, hostname, or effective port as cross-origin and trims header names before matching, so sensitive headers are stripped reliably.
Upgrade the nodemailer library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application passes credential headers into a fetch request that can be redirected to a different origin, directly or through an attachment href.
3.0.0 - 10.1.0
Fixed in 10.1.1nodemailer is vulnerable to Information Disclosure in versions 3.0.0 - 10.1.0.
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.