Intel

AIKIDO-2026-894951

nodemailer is vulnerable to Information Disclosure

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 19, 2026
October 19, 2026

35

CVE Score

Low

Information Disclosure

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the nodemailer library to the patch version.

Who does this affect?

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.

Package

Versions

3.0.0 - 10.1.0

Fixed in 10.1.1

Background info

nodemailer is vulnerable to Information Disclosure in versions 3.0.0 - 10.1.0.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea