nodemailer 8.0.9 → 8.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [8.0.10](https://github.com/nodemailer/nodemailer/compare/v8.0.9...v8.0.10) (2026-05-29)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * fall back to lower-severity handler when custom logger lacks a level method ([6d849df](https://github.com/nodemailer/nodemailer/commit/6d849df59a56184b48844ed10b5fb7b8e9f74634))
9
+
3
10
  ## [8.0.9](https://github.com/nodemailer/nodemailer/compare/v8.0.8...v8.0.9) (2026-05-26)
4
11
 
5
12
 
package/SECURITY.md ADDED
@@ -0,0 +1,59 @@
1
+ # Security Policy
2
+
3
+ Nodemailer is a widely deployed, zero-dependency e-mail library. We take security
4
+ reports seriously and aim to respond quickly.
5
+
6
+ ## Supported Versions
7
+
8
+ Security fixes are released only against the latest major version. We do not
9
+ backport patches to older majors — upgrading to the current release line is the
10
+ supported way to receive security updates.
11
+
12
+ | Version | Supported |
13
+ | ------- | ------------------ |
14
+ | 8.x | :white_check_mark: |
15
+ | < 8.0 | :x: |
16
+
17
+ If you are on an older major, please upgrade. See the migration notes at
18
+ <https://nodemailer.com/> before updating.
19
+
20
+ ## Reporting a Vulnerability
21
+
22
+ **Please do not report security vulnerabilities through public GitHub issues,
23
+ pull requests, or discussions.**
24
+
25
+ Report privately through one of the following channels:
26
+
27
+ 1. **GitHub Security Advisories (preferred).** Open a private report at
28
+ <https://github.com/nodemailer/nodemailer/security/advisories/new>. This keeps
29
+ the discussion private until a fix is published and lets us coordinate a CVE
30
+ and credit you.
31
+ 2. **Email.** Send details to **andris@reinman.eu** (the contact listed in
32
+ [`SECURITY.txt`](SECURITY.txt)). Encrypt sensitive details if possible.
33
+
34
+ When reporting, please include as much of the following as you can:
35
+
36
+ - The affected version(s) and environment (Node.js version, OS).
37
+ - The component involved (e.g. SMTP connection, address parsing, MIME/header
38
+ generation, DKIM).
39
+ - A clear description of the issue and its impact (e.g. header/SMTP command
40
+ injection, information disclosure, DoS).
41
+ - A minimal proof of concept or reproduction steps.
42
+ - Any suggested remediation, if you have one.
43
+
44
+ Nodemailer is maintained by a single person, so there is no guaranteed response
45
+ time — sometimes reports are handled within hours, sometimes they take longer.
46
+ Accepted issues are fixed in a new release and coordinated through a GitHub
47
+ Security Advisory / CVE, and reporters who wish to be named are credited.
48
+
49
+ ## Scope
50
+
51
+ In scope: the `nodemailer` package source in this repository — message and MIME
52
+ generation, SMTP/LMTP client behaviour, address parsing, header handling, DKIM
53
+ signing, and the bundled transports.
54
+
55
+ Out of scope: vulnerabilities in your own application code, misconfiguration of
56
+ your mail server or credentials, social-engineering reports, and issues in
57
+ third-party services Nodemailer connects to.
58
+
59
+ Thank you for helping keep Nodemailer and its users safe.
@@ -367,7 +367,16 @@ module.exports._logFunc = (logger, level, defaults, data, message, ...args) => {
367
367
  const entry = Object.assign({}, defaults || {}, data || {});
368
368
  delete entry.level;
369
369
 
370
- logger[level](entry, message, ...args);
370
+ let logLevel = level;
371
+ if (typeof logger[logLevel] !== 'function') {
372
+ // Provided logger does not implement this level. Fall back to a
373
+ // lower-severity handler instead of throwing.
374
+ logLevel = ['info', 'debug', 'log', 'trace', 'warn', 'error'].find(name => typeof logger[name] === 'function');
375
+ }
376
+
377
+ if (logLevel) {
378
+ logger[logLevel](entry, message, ...args);
379
+ }
371
380
  };
372
381
 
373
382
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodemailer",
3
- "version": "8.0.9",
3
+ "version": "8.0.10",
4
4
  "description": "Easy as cake e-mail sending from your Node.js applications",
5
5
  "main": "lib/nodemailer.js",
6
6
  "scripts": {