MediumGHSA-hwqf-gcqm-7353CVE-2021-23400

Header injection in nodemailer

Published 10 Dec 2021 · Updated 14 Jan 2025

Affected package

Affected
<6.6.1
Fixed in
6.6.1
Update to the fixed version for your release line, for example:npm install nodemailer@6.6.1

Details

The package nodemailer before 6.6.1 are vulnerable to HTTP Header Injection if unsanitized user input that may contain newlines and carriage returns is passed into an address object.

Is GHSA-hwqf-gcqm-7353 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected nodemailer, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.