Description
Nodemailer before 8.0.8 disables TLS certificate verification in lib/fetch/index.js through rejectUnauthorized: false, allowing attackers to intercept OAuth2 token requests. Attackers in a machine-in-the-middle position can capture OAuth client secrets, refresh tokens, and access tokens transmitted over compromised HTTPS connections.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| nodemailer | nodemailer | < 8.0.8 | 8.0.8 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-nodemailer | 8.0.11+~8.0.1-1 | — |
| Debian 13 | node-nodemailer | No fix yet | — |
| Debian 12 | node-nodemailer | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | node-nodemailer | No fix yet | — |
| Ubuntu 24.04 LTS | node-nodemailer | No fix yet | — |
| Ubuntu 22.04 LTS | node-nodemailer | No fix yet | — |
| Ubuntu 20.04 LTS | node-nodemailer | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | langfuse-3 +1 | 3.191.0-r0 | — |
| Wolfi rolling | langfuse-3-compat | 3.225.7-r6 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | nodemailer | < 8.0.8 | 8.0.8 | GHSA-r7g4-qg5f-qqm2 |
References
- GitHub Security Advisory (GHSA-r7g4-qg5f-qqm2) vendor-advisory
- VulnCheck Advisory: Nodemailer before 8.0.8 TLS Certificate Validation Bypass third-party-advisory