Vulnerabilities

23 via 64 paths

Dependencies

497

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 23
  • 9
Severity
  • 4
  • 12
  • 15
  • 1
Status
  • 32
  • 0
  • 0

critical severity
new

Access of Resource Using Incompatible Type ('Type Confusion')

  • Vulnerable module: handlebars
  • Introduced through: @zone-eu/mobileconfig@2.4.7

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/mobileconfig@2.4.7 › handlebars@4.7.9

Overview

handlebars is an extension to the Mustache templating language.

Affected versions of this package are vulnerable to Access of Resource Using Incompatible Type ('Type Confusion') via the compiler's handling of pre-parsed AST objects passed to compile or precompile. When a caller supplies a hand-built or attacker-influenced AST directly to the compiler, AST node values such as path depths, path parts, literal values, content strings, hash pair keys, and block params are written into generated JavaScript code without sufficient validation, allowing an attacker to inject arbitrary code into the compiled template output. The fix moves all AST value validation into the compiler itself, so that values are checked at the point they are written into generated code rather than only at parse time.

Remediation

Upgrade handlebars to version 4.7.10 or higher.

References

critical severity
new

Incomplete List of Disallowed Inputs

  • Vulnerable module: handlebars
  • Introduced through: @zone-eu/mobileconfig@2.4.7

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/mobileconfig@2.4.7 › handlebars@4.7.9

Overview

handlebars is an extension to the Mustache templating language.

Affected versions of this package are vulnerable to Incomplete List of Disallowed Inputs in the lookupProperty function in lib/handlebars/runtime.js, which returns the resolved value as soon as Object.prototype.hasOwnProperty.call(parent, propertyName) holds, without consulting the prototype access deny list, and constructor is an own property of every prototype object, so Function.prototype.constructor resolves to Function itself. An attacker can execute code on the server by rendering a template that walks to a prototype and reads its constructor, as in {{lookup (lookup fn "__proto__") "constructor"}}. This requires the attacker to control the template rather than only the data, and compilation with allowProtoMethodsByDefault: true.

Workaround

This vulnerability can be avoided by leaving allowProtoMethodsByDefault at its default of false when compiling untrusted templates.

Remediation

Upgrade handlebars to version 4.7.10 or higher.

References

critical severity
new

Improper Certificate Validation

  • Vulnerable module: undici
  • Introduced through: undici@8.11.2, @zone-eu/zone-mta@3.11.4 and others

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › undici@8.11.2
    Remediation: Upgrade to undici@8.12.2.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › undici@8.11.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › mailauth@7.3.0 › undici@8.11.2
    Remediation: Upgrade to mailauth@8.0.0.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › mailauth@7.1.1 › undici@8.11.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › mx-connect@2.0.2 › mailauth@7.1.1 › undici@8.11.2

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to Improper Certificate Validation via the Agent constructor in lib/dispatcher/agent.js, where TLS options passed as the tls parameter are silently dropped and never stored in kOptions. Because the tls field is not destructured and forwarded to the internal options object, any TLS configuration supplied by the caller - including custom CA certificates, certificate pinning, or hostname verification overrides - is ignored when connections are established. An attacker positioned on the network can exploit the resulting absence of TLS constraints to perform a MitM attack, intercepting or modifying HTTPS traffic that the caller believed was protected by the supplied TLS settings.

Workaround

Users who are not able to upgrade to the fixed version are advised to pass the TLS options through connect instead of tls. For proxied EnvHttpProxyAgent destinations, use requestTls / proxyTls.

Remediation

Upgrade undici to version 6.29.1, 7.30.1, 8.12.2 or higher.

References

critical severity
new

Origin Validation Error

  • Vulnerable module: undici
  • Introduced through: undici@8.11.2, @zone-eu/zone-mta@3.11.4 and others

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › undici@8.11.2
    Remediation: Upgrade to undici@8.12.2.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › undici@8.11.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › mailauth@7.3.0 › undici@8.11.2
    Remediation: Upgrade to mailauth@8.0.0.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › mailauth@7.1.1 › undici@8.11.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › mx-connect@2.0.2 › mailauth@7.1.1 › undici@8.11.2

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to Origin Validation Error via cross-origin redirect handling in CacheHandler.onResponseStart, where a redirect to a different origin can cause the final response to be stored under the original (trusted) origin's cache key. An attacker who controls a redirect target can poison the shared cache by serving a response that gets keyed against a URL the application trusts, enabling subsequent cache-served responses to deliver attacker-controlled content. Additionally, intermediate redirect hops carrying restrictive Cache-Control directives (such as no-store or private) are not honored, allowing those hops to be laundered into a cacheable entry under the original key.

Note: This is only exploitable when an originless Agent, a shared MemoryCacheStore or SqliteCacheStore, and the composition compose(redirect(), cache()) are all used.

Remediation

Upgrade undici to version 7.30.1, 8.12.2 or higher.

References

high severity
new

Prototype Pollution

  • Vulnerable module: toml
  • Introduced through: @zone-eu/wild-config@1.7.7 and @zone-eu/zone-mta@3.11.4

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/wild-config@1.7.7 › toml@5.0.0
    Remediation: Upgrade to @zone-eu/wild-config@1.7.8.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › @zone-eu/wild-config@1.7.7 › toml@5.0.0

Overview

Affected versions of this package are vulnerable to Prototype Pollution via ambiguous path-key encoding in lib/compiler.js, where the compiler tracked table origins using string-rendered path sets rather than per-object tags. Because quoteDottedString() quotes a segment only when it contains a . and never escapes a " inside the segment, distinct key paths can render to the same string. This collision allows an array-of-tables header to clear the guard on an unrelated key, after which a dotted key can descend through a Date object into Object.prototype, polluting it with attacker-controlled values. An attacker who can supply a TOML document for parsing can trigger this condition.

Details

Prototype Pollution is a vulnerability affecting JavaScript. Prototype Pollution refers to the ability to inject properties into existing JavaScript language construct prototypes, such as objects. JavaScript allows all Object attributes to be altered, including their magical attributes such as __proto__, constructor and prototype. An attacker manipulates these attributes to overwrite, or pollute, a JavaScript application object prototype of the base object by injecting other values. Properties on the Object.prototype are then inherited by all the JavaScript objects through the prototype chain. When that happens, this leads to either denial of service by triggering JavaScript exceptions, or it tampers with the application source code to force the code path that the attacker injects, thereby leading to remote code execution.

There are two main ways in which the pollution of prototypes occurs:

  • Unsafe Object recursive merge

  • Property definition by path

Unsafe Object recursive merge

The logic of a vulnerable recursive merge function follows the following high-level model:

merge (target, source)

  foreach property of source

    if property exists and is an object on both the target and the source

      merge(target[property], source[property])

    else

      target[property] = source[property]

When the source object contains a property named __proto__ defined with Object.defineProperty() , the condition that checks if the property exists and is an object on both the target and the source passes and the merge recurses with the target, being the prototype of Object and the source of Object as defined by the attacker. Properties are then copied on the Object prototype.

Clone operations are a special sub-class of unsafe recursive merges, which occur when a recursive merge is conducted on an empty object: merge({},source).

lodash and Hoek are examples of libraries susceptible to recursive merge attacks.

Property definition by path

There are a few JavaScript libraries that use an API to define property values on an object based on a given path. The function that is generally affected contains this signature: theFunction(object, path, value)

If the attacker can control the value of “path”, they can set this value to __proto__.myValue. myValue is then assigned to the prototype of the class of the object.

Types of attacks

There are a few methods by which Prototype Pollution can be manipulated:

Type Origin Short description
Denial of service (DoS) Client This is the most likely attack.
DoS occurs when Object holds generic functions that are implicitly called for various operations (for example, toString and valueOf).
The attacker pollutes Object.prototype.someattr and alters its state to an unexpected value such as Int or Object. In this case, the code fails and is likely to cause a denial of service.
For example: if an attacker pollutes Object.prototype.toString by defining it as an integer, if the codebase at any point was reliant on someobject.toString() it would fail.
Remote Code Execution Client Remote code execution is generally only possible in cases where the codebase evaluates a specific attribute of an object, and then executes that evaluation.
For example: eval(someobject.someattr). In this case, if the attacker pollutes Object.prototype.someattr they are likely to be able to leverage this in order to execute code.
Property Injection Client The attacker pollutes properties that the codebase relies on for their informative value, including security properties such as cookies or tokens.
For example: if a codebase checks privileges for someuser.isAdmin, then when the attacker pollutes Object.prototype.isAdmin and sets it to equal true, they can then achieve admin privileges.

Affected environments

The following environments are susceptible to a Prototype Pollution attack:

  • Application server

  • Web server

  • Web browser

How to prevent

  1. Freeze the prototype— use Object.freeze (Object.prototype).

  2. Require schema validation of JSON input.

  3. Avoid using unsafe recursive merge functions.

  4. Consider using objects without prototypes (for example, Object.create(null)), breaking the prototype chain and preventing pollution.

  5. As a best practice use Map instead of Object.

For more information on this vulnerability type:

Arteau, Olivier. “JavaScript prototype pollution attack in NodeJS application.” GitHub, 26 May 2018

Remediation

Upgrade toml to version 5.0.1 or higher.

References

high severity

Uncontrolled Recursion

  • Vulnerable module: ioredis
  • Introduced through: ioredis@5.11.1 and @zone-eu/zone-mta@3.11.4

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › ioredis@5.11.1
    Remediation: Upgrade to ioredis@6.0.0.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › ioredis@5.11.1

Overview

ioredis is a Redis client for Node.js.

Affected versions of this package are vulnerable to Uncontrolled Recursion in the RESP protocol parser in lib/parser.js. An attacker can crash the Node.js client process by sending crafted RESP byte streams with repeated nested array headers. The parser recurses while handling nested arrays, exhausting the V8 call stack and triggering an uncaught RangeError. In affected deployments that consume data from a malicious or compromised Redis endpoint, this terminates the process and disrupts Redis client operations.

Remediation

Upgrade ioredis to version 6.0.0-beta.1 or higher.

References

high severity

Improper Verification of Cryptographic Signature

  • Vulnerable module: node-forge
  • Introduced through: node-forge@1.4.0

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › node-forge@1.4.0

Overview

node-forge is a JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilities.

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature in rsa.js, whose DigestInfo validation checks the outer element count (obj.value.length !== 2) but never verifies the element count of the inner DigestAlgorithm SEQUENCE, so the ASN.1 parser accepts extra children that are ignored during digest extraction. An attacker can forge a signature that verifies as valid for an arbitrary message, without the private key, by fixing the target digest at the block boundaries and filling roughly 314 garbage bytes inside the DigestAlgorithm structure to absorb the mathematical residue. This only affects verification against RSA keys with a low public exponent such as e=3, and although _parseAllDigestBytes defaults to true and rejects trailing garbage, it does not detect this interior padding.

Note: This is a bypass of the fix for the vulnerability described in CVE-2026-33894 and, as of this publication, has not been acknowledged by project maintainers.

Remediation

A fix was pushed into the master branch but not yet published.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: toml
  • Introduced through: @zone-eu/wild-config@1.7.7 and @zone-eu/zone-mta@3.11.4

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/wild-config@1.7.7 › toml@5.0.0
    Remediation: Upgrade to @zone-eu/wild-config@1.7.8.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › @zone-eu/wild-config@1.7.7 › toml@5.0.0

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the integer parsing logic in lib/parser.js and src/toml.pegjs, where BigInt conversion of oversized integer literals exhibits super-linear CPU growth relative to digit count. An attacker can supply a TOML document containing a multi-megabyte integer literal, causing the parser to consume excessive CPU before the range check rejects the value, resulting in a crash.

Remediation

Upgrade toml to version 5.0.1 or higher.

References

high severity
new

Inefficient Algorithmic Complexity

  • Vulnerable module: toml
  • Introduced through: @zone-eu/wild-config@1.7.7 and @zone-eu/zone-mta@3.11.4

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/wild-config@1.7.7 › toml@5.0.0
    Remediation: Upgrade to @zone-eu/wild-config@1.7.8.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › @zone-eu/wild-config@1.7.7 › toml@5.0.0

Overview

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the compiler in lib/compiler.js, where processing an array-of-tables header causes a full rescan of every path defined so far. An attacker can supply a TOML document with a large number of array-of-tables headers to trigger quadratic time complexity, crashing the process.

Remediation

Upgrade toml to version 5.0.1 or higher.

References

high severity
new

Inefficient Algorithmic Complexity

  • Vulnerable module: toml
  • Introduced through: @zone-eu/wild-config@1.7.7 and @zone-eu/zone-mta@3.11.4

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/wild-config@1.7.7 › toml@5.0.0
    Remediation: Upgrade to @zone-eu/wild-config@1.7.8.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › @zone-eu/wild-config@1.7.7 › toml@5.0.0

Overview

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the TOML compiler in lib/compiler.js, where path strings were maintained using three string-keyed Sets. Every key segment re-joined its entire prefix on each assignment, and every array-of-tables header rescanned every path defined so far, producing quadratic time complexity. An attacker can supply a TOML document with a large number of keys or array-of-tables headers to cause the parser to consume excessive CPU and crash the process.

Remediation

Upgrade toml to version 5.0.1 or higher.

References

high severity
new

Uncaught Exception

  • Vulnerable module: undici
  • Introduced through: undici@8.11.2, @zone-eu/zone-mta@3.11.4 and others

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › undici@8.11.2
    Remediation: Upgrade to undici@8.12.2.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › undici@8.11.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › mailauth@7.3.0 › undici@8.11.2
    Remediation: Upgrade to mailauth@8.0.0.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › mailauth@7.1.1 › undici@8.11.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › mx-connect@2.0.2 › mailauth@7.1.1 › undici@8.11.2

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to Uncaught Exception via unhandled ERR_TLS_CERT_ALTNAME_INVALID errors in onHttpSocketError, onHttp2SessionError, and onHttp2SocketError. When a TLS connection is established and the server's certificate fails Subject Alternative Name validation post-connect, the error propagates and triggers a failed assert call, crashing the process. An attacker who can cause the client to connect to a server presenting an invalid TLS certificate can exploit this to crash the Node.js process.

Remediation

Upgrade undici to version 6.29.1, 7.30.1, 8.12.2 or higher.

References

high severity
new

Uncaught Exception

  • Vulnerable module: undici
  • Introduced through: undici@8.11.2, @zone-eu/zone-mta@3.11.4 and others

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › undici@8.11.2
    Remediation: Upgrade to undici@8.12.2.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › undici@8.11.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › mailauth@7.3.0 › undici@8.11.2
    Remediation: Upgrade to mailauth@8.0.0.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › mailauth@7.1.1 › undici@8.11.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › mx-connect@2.0.2 › mailauth@7.1.1 › undici@8.11.2

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to Uncaught Exception via excessive Content-Encoding headers in an HTTP response processed by httpNetworkFetch in lib/web/fetch/index.js. A server returning a response with more than five content-encoding layers triggers an error path that previously called reject() before the response body Readable stream was initialised, leaving the stream in an inconsistent state and crashing the client process.

Remediation

Upgrade undici to version 6.29.1, 7.30.1, 8.12.2 or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: undici
  • Introduced through: undici@8.11.2, @zone-eu/zone-mta@3.11.4 and others

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › undici@8.11.2
    Remediation: Upgrade to undici@8.12.2.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › undici@8.11.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › mailauth@7.3.0 › undici@8.11.2
    Remediation: Upgrade to mailauth@8.0.0.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › mailauth@7.1.1 › undici@8.11.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › mx-connect@2.0.2 › mailauth@7.1.1 › undici@8.11.2

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via unbounded automatic PONG write queuing in the WebSocket ByteParser receiver. A remote attacker can send a flood of PING control frames over a standard WebSocket connection, causing the outbound write queue to grow without bound because each inbound PING triggers an automatic PONG reply that is enqueued regardless of socket backpressure, exhausting memory and crashing the process.

Remediation

Upgrade undici to version 6.29.1, 7.30.1, 8.12.2 or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: undici
  • Introduced through: undici@8.11.2, @zone-eu/zone-mta@3.11.4 and others

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › undici@8.11.2
    Remediation: Upgrade to undici@8.12.2.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › undici@8.11.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › mailauth@7.3.0 › undici@8.11.2
    Remediation: Upgrade to mailauth@8.0.0.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › mailauth@7.1.1 › undici@8.11.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › mx-connect@2.0.2 › mailauth@7.1.1 › undici@8.11.2

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the EventSourceStream transform in lib/web/eventsource/eventsource-stream.js, where the maxEventSize limit is only enforced inside parseLine(), which is only invoked when a line terminator (CR or LF) is encountered. A server can stream a data: field (or any field) that never contains a line terminator, causing the client to buffer the response body without bound and driving the process toward memory exhaustion.

Remediation

Upgrade undici to version 6.29.1, 7.30.1, 8.12.2 or higher.

References

high severity
new

Improper Handling of Case Sensitivity

  • Vulnerable module: undici
  • Introduced through: undici@8.11.2, @zone-eu/zone-mta@3.11.4 and others

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › undici@8.11.2
    Remediation: Upgrade to undici@8.12.2.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › undici@8.11.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › mailauth@7.3.0 › undici@8.11.2
    Remediation: Upgrade to mailauth@8.0.0.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › mailauth@7.1.1 › undici@8.11.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › mx-connect@2.0.2 › mailauth@7.1.1 › undici@8.11.2

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to Improper Handling of Case Sensitivity via the fetch() implementation's Subresource Integrity (SRI) verification logic, which matches the algorithm token against a lowercase-only set. A valid but non-lowercase token such as SHA256-... or Sha256-... is treated as unknown and skipped, causing undici to treat the integrity list as empty and accept the response unconditionally. An attacker who controls the response body can therefore deliver arbitrary bytes to an application that pinned a valid uppercase or mixed-case SRI token, with no integrity error raised.

Note: This is only exploitable when the application uses uppercase or mixed-case algorithm tokens (e.g., SHA256, Sha384) in its integrity metadata rather than the canonical lowercase forms.

Workaround

Use lowercase algorithm tokens (sha256, sha384, sha512) in all integrity metadata passed to fetch().

Remediation

Upgrade undici to version 7.30.1, 8.12.2 or higher.

References

high severity
new

Uncaught Exception

  • Vulnerable module: undici
  • Introduced through: undici@8.11.2, @zone-eu/zone-mta@3.11.4 and others

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › undici@8.11.2
    Remediation: Upgrade to undici@8.12.2.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › undici@8.11.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › mailauth@7.3.0 › undici@8.11.2
    Remediation: Upgrade to mailauth@8.0.0.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › mailauth@7.1.1 › undici@8.11.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › mx-connect@2.0.2 › mailauth@7.1.1 › undici@8.11.2

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to Uncaught Exception via the DecompressHandler in lib/interceptor/decompress.js, where an uncaught exception thrown by a downstream handler during onResponseData or onResponseEnd propagates unhandled rather than being converged into a per-request error. An attacker or a misbehaving downstream handler can trigger this condition to crash the request pipeline, causing a denial of service.

Remediation

Upgrade undici to version 7.30.1, 8.12.2 or higher.

References

medium severity
new

Uncontrolled Recursion

  • Vulnerable module: sanitize-html
  • Introduced through: sanitize-html@2.18.0

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › sanitize-html@2.18.0
    Remediation: Upgrade to sanitize-html@2.18.1.

Overview

sanitize-html is a library that allows you to clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis

Affected versions of this package are vulnerable to Uncontrolled Recursion via its transitive dependency on deepmerge, which is affected by CVE-2026-93753. When sanitize-html merges configuration objects combining tag-specific and wildcard allowedClasses or allowedStyles entries, the deepmerge call could be exploited to cause a crash. The fix removes the deepmerge dependency entirely, replacing it with simple array concatenation.

Remediation

Upgrade sanitize-html to version 2.18.1 or higher.

References

medium severity

Prototype Pollution

  • Vulnerable module: deepmerge
  • Introduced through: sanitize-html@2.18.0

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › sanitize-html@2.18.0 › deepmerge@4.3.1

Overview

Affected versions of this package are vulnerable to Prototype Pollution via mergeObject(), which fails to validate keys before writing them to target objects. An attacker can supply a malicious source object containing a __proto__ key in a merge operation, injecting attacker-controlled properties into the prototype of the returned object and causing applications to inherit unintended values when accessing properties without own-property checks.

Notes:

  • The proposed fix in PR #274 denies proto by name in both merge loops and adds regression tests. The PR was closed without merging and the main branch still contains the vulnerable guard.
  • The maintainer closed the issue as “completed” without a technical rebuttal. Per them, they will not review the fix
  • Scope: According to the tests, a plain {} target is guarded. The global Object.prototype is not modified, and Impact is limited to the object returned by merge().

Details

Prototype Pollution is a vulnerability affecting JavaScript. Prototype Pollution refers to the ability to inject properties into existing JavaScript language construct prototypes, such as objects. JavaScript allows all Object attributes to be altered, including their magical attributes such as __proto__, constructor and prototype. An attacker manipulates these attributes to overwrite, or pollute, a JavaScript application object prototype of the base object by injecting other values. Properties on the Object.prototype are then inherited by all the JavaScript objects through the prototype chain. When that happens, this leads to either denial of service by triggering JavaScript exceptions, or it tampers with the application source code to force the code path that the attacker injects, thereby leading to remote code execution.

There are two main ways in which the pollution of prototypes occurs:

  • Unsafe Object recursive merge

  • Property definition by path

Unsafe Object recursive merge

The logic of a vulnerable recursive merge function follows the following high-level model:

merge (target, source)

  foreach property of source

    if property exists and is an object on both the target and the source

      merge(target[property], source[property])

    else

      target[property] = source[property]

When the source object contains a property named __proto__ defined with Object.defineProperty() , the condition that checks if the property exists and is an object on both the target and the source passes and the merge recurses with the target, being the prototype of Object and the source of Object as defined by the attacker. Properties are then copied on the Object prototype.

Clone operations are a special sub-class of unsafe recursive merges, which occur when a recursive merge is conducted on an empty object: merge({},source).

lodash and Hoek are examples of libraries susceptible to recursive merge attacks.

Property definition by path

There are a few JavaScript libraries that use an API to define property values on an object based on a given path. The function that is generally affected contains this signature: theFunction(object, path, value)

If the attacker can control the value of “path”, they can set this value to __proto__.myValue. myValue is then assigned to the prototype of the class of the object.

Types of attacks

There are a few methods by which Prototype Pollution can be manipulated:

Type Origin Short description
Denial of service (DoS) Client This is the most likely attack.
DoS occurs when Object holds generic functions that are implicitly called for various operations (for example, toString and valueOf).
The attacker pollutes Object.prototype.someattr and alters its state to an unexpected value such as Int or Object. In this case, the code fails and is likely to cause a denial of service.
For example: if an attacker pollutes Object.prototype.toString by defining it as an integer, if the codebase at any point was reliant on someobject.toString() it would fail.
Remote Code Execution Client Remote code execution is generally only possible in cases where the codebase evaluates a specific attribute of an object, and then executes that evaluation.
For example: eval(someobject.someattr). In this case, if the attacker pollutes Object.prototype.someattr they are likely to be able to leverage this in order to execute code.
Property Injection Client The attacker pollutes properties that the codebase relies on for their informative value, including security properties such as cookies or tokens.
For example: if a codebase checks privileges for someuser.isAdmin, then when the attacker pollutes Object.prototype.isAdmin and sets it to equal true, they can then achieve admin privileges.

Affected environments

The following environments are susceptible to a Prototype Pollution attack:

  • Application server

  • Web server

  • Web browser

How to prevent

  1. Freeze the prototype— use Object.freeze (Object.prototype).

  2. Require schema validation of JSON input.

  3. Avoid using unsafe recursive merge functions.

  4. Consider using objects without prototypes (for example, Object.create(null)), breaking the prototype chain and preventing pollution.

  5. As a best practice use Map instead of Object.

For more information on this vulnerability type:

Arteau, Olivier. “JavaScript prototype pollution attack in NodeJS application.” GitHub, 26 May 2018

Remediation

There is no fixed version for deepmerge.

References

medium severity
new

Inefficient Algorithmic Complexity

  • Vulnerable module: nodemailer
  • Introduced through: @zone-eu/wild-plugins@1.0.10 and @zone-eu/zone-mta@3.11.4

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/wild-plugins@1.0.10 › nodemailer@10.0.9
    Remediation: Upgrade to @zone-eu/wild-plugins@1.0.11.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › @zone-eu/wild-plugins@1.0.10 › nodemailer@10.0.9

Overview

nodemailer is an Easy as cake e-mail sending from your Node.js applications

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in the isPartialResponse function and the _onData method of SMTPConnection in src/smtp-connection/index.ts, where each continuation line is appended to the same response queue entry and the partial check re-runs str.slice(str.lastIndexOf('\n') + 1) over the whole accumulated string, forcing a full flatten of the V8 rope on every line. An attacker who controls or impersonates the SMTP peer can starve the event loop of the entire Node.js process, halting every other connection, request, and timer in it, and grow memory without bound, by streaming continuation lines such as 220-flood and never sending a completion line. This is reachable during the greeting and EHLO phases before the client authenticates or issues any command, the connection module applies no cap on accumulated reply size or line count, and the existing timers do not help, since greetingTimeout fires into an already starved loop and the inactivity socketTimeout resets on every inbound chunk.

Remediation

Upgrade nodemailer to version 10.0.10 or higher.

References

medium severity
new

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: nodemailer
  • Introduced through: @zone-eu/wild-plugins@1.0.10 and @zone-eu/zone-mta@3.11.4

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/wild-plugins@1.0.10 › nodemailer@10.0.9
    Remediation: Upgrade to @zone-eu/wild-plugins@1.0.11.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › @zone-eu/wild-plugins@1.0.10 › nodemailer@10.0.9

Overview

nodemailer is an Easy as cake e-mail sending from your Node.js applications

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the AUTH mechanism detection of SMTPConnection._actionEHLO in src/smtp-connection/index.ts, where all four patterns contain (?:(\s+|=)[^\n]*\s+|\s+|=) before the mechanism literal, so [^\n]* and the trailing \s+ compete for the same whitespace and the engine tries every partition of the run before failing. An attacker who controls or intercepts the SMTP peer can stall the whole Node.js process, suspending every other request, timer, and connection in it, by answering EHLO with a line such as 250-AUTH followed by a long whitespace run and a token that matches no mechanism. This is reached before authentication on the first EHLO against a server offering no STARTTLS, on the second after a STARTTLS upgrade, or on the first when ignoreTLS is set, and the synchronous stall cannot be interrupted by the socket timeout, with roughly 4,000 whitespace characters already costing tens of seconds per pattern.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade nodemailer to version 10.0.13 or higher.

References

medium severity
new

Inefficient Algorithmic Complexity

  • Vulnerable module: nodemailer
  • Introduced through: @zone-eu/wild-plugins@1.0.10 and @zone-eu/zone-mta@3.11.4

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/wild-plugins@1.0.10 › nodemailer@10.0.9
    Remediation: Upgrade to @zone-eu/wild-plugins@1.0.11.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › @zone-eu/wild-plugins@1.0.10 › nodemailer@10.0.9

Overview

nodemailer is an Easy as cake e-mail sending from your Node.js applications

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in the parseHeaders method of MessageParser in src/dkim/message-parser.ts, whose unfold loop appends each continuation line onto the preceding one and then re-tests the anchored /^[ \t]/ against the growing merged line, forcing a full flatten of the accumulated rope on every iteration. A user who can influence the size of a header that folds into many continuation lines, most readily a large recipient list but equally a long Subject, References, or custom header, can starve the event loop of the single threaded sending process for seconds on every signed message, halting all other work in it. This requires DKIM signing to be enabled, and nothing bounds the input, since checkHeaders buffers the header block until the terminator and the signer's MAX_MESSAGE_SIZE and cacheTreshold apply to the body stream rather than the headers, while the MIME composer folds the value deterministically at column 76 so the line count scales with the supplied size.

Remediation

Upgrade nodemailer to version 10.0.10 or higher.

References

medium severity
new

Cross-site Scripting (XSS)

  • Vulnerable module: handlebars
  • Introduced through: @zone-eu/mobileconfig@2.4.7

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/mobileconfig@2.4.7 › handlebars@4.7.9

Overview

handlebars is an extension to the Mustache templating language.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in the quotedString() function in lib/handlebars/compiler/code-gen.js, which writes static template text into the JavaScript that Handlebars.precompile() generates without neutralizing a </script> sequence. An attacker can execute script in the browser under the embedding page's origin by placing </script> followed by markup in a template, which closes the script element early so the remainder is parsed as HTML. This requires the application to precompile templates the attacker controls and to embed the generated source directly in an inline <script> element, and the injected markup runs only when a user loads that page.

Workaround

This vulnerability can be avoided by serving precompiled templates as external JavaScript files rather than inlining the generated source in HTML.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade handlebars to version 4.7.10 or higher.

References

medium severity

MPL-2.0 license

  • Module: @root/acme
  • Introduced through: @root/acme@3.1.0

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0

MPL-2.0 license

medium severity

MPL-2.0 license

  • Module: @root/asn1
  • Introduced through: @root/csr@0.8.1 and @root/acme@3.1.0

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/csr@0.8.1 › @root/asn1@1.0.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/csr@0.8.1 › @root/x509@0.7.2 › @root/asn1@1.0.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/x509@0.7.2 › @root/asn1@1.0.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/csr@0.8.1 › @root/asn1@1.0.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/csr@0.8.1 › @root/x509@0.7.2 › @root/asn1@1.0.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/keypairs@0.10.3 › @root/x509@0.7.2 › @root/asn1@1.0.2

MPL-2.0 license

medium severity

MPL-2.0 license

  • Module: @root/csr
  • Introduced through: @root/csr@0.8.1 and @root/acme@3.1.0

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/csr@0.8.1
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/csr@0.8.1

MPL-2.0 license

medium severity

MPL-2.0 license

  • Module: @root/encoding
  • Introduced through: @root/acme@3.1.0 and @root/csr@0.8.1

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/encoding@1.0.1
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/csr@0.8.1 › @root/asn1@1.0.2 › @root/encoding@1.0.1
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/csr@0.8.1 › @root/x509@0.7.2 › @root/encoding@1.0.1
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/x509@0.7.2 › @root/encoding@1.0.1
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/keypairs@0.10.3 › @root/encoding@1.0.1
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/csr@0.8.1 › @root/x509@0.7.2 › @root/asn1@1.0.2 › @root/encoding@1.0.1
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/x509@0.7.2 › @root/asn1@1.0.2 › @root/encoding@1.0.1
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/csr@0.8.1 › @root/asn1@1.0.2 › @root/encoding@1.0.1
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/csr@0.8.1 › @root/x509@0.7.2 › @root/encoding@1.0.1
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/keypairs@0.10.3 › @root/x509@0.7.2 › @root/encoding@1.0.1
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/csr@0.8.1 › @root/x509@0.7.2 › @root/asn1@1.0.2 › @root/encoding@1.0.1
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/keypairs@0.10.3 › @root/x509@0.7.2 › @root/asn1@1.0.2 › @root/encoding@1.0.1

MPL-2.0 license

medium severity

MPL-2.0 license

  • Module: @root/keypairs
  • Introduced through: @root/acme@3.1.0

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/keypairs@0.10.3

MPL-2.0 license

medium severity

MPL-2.0 license

  • Module: @root/pem
  • Introduced through: @root/csr@0.8.1 and @root/acme@3.1.0

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/csr@0.8.1 › @root/pem@1.0.4
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/pem@1.0.4
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/csr@0.8.1 › @root/pem@1.0.4
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/keypairs@0.10.3 › @root/pem@1.0.4

MPL-2.0 license

medium severity

MPL-2.0 license

  • Module: @root/x509
  • Introduced through: @root/csr@0.8.1 and @root/acme@3.1.0

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/csr@0.8.1 › @root/x509@0.7.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/x509@0.7.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/csr@0.8.1 › @root/x509@0.7.2
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @root/acme@3.1.0 › @root/keypairs@0.10.3 › @root/x509@0.7.2

MPL-2.0 license

medium severity

LGPL-3.0 license

  • Module: openpgp
  • Introduced through: openpgp@6.1.1

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › openpgp@6.1.1

LGPL-3.0 license

medium severity

MPL-2.0 license

  • Module: pem-jwk
  • Introduced through: pem-jwk@2.0.0

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › pem-jwk@2.0.0

MPL-2.0 license

low severity
new

Improper Adherence to Coding Standards

  • Vulnerable module: nodemailer
  • Introduced through: @zone-eu/wild-plugins@1.0.10 and @zone-eu/zone-mta@3.11.4

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/wild-plugins@1.0.10 › nodemailer@10.0.9
    Remediation: Upgrade to @zone-eu/wild-plugins@1.0.11.
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @zone-eu/zone-mta@3.11.4 › @zone-eu/wild-plugins@1.0.10 › nodemailer@10.0.9

Overview

nodemailer is an Easy as cake e-mail sending from your Node.js applications

Affected versions of this package are vulnerable to Improper Adherence to Coding Standards in the checkChar method of the Tokenizer class in src/addressparser/index.ts, where operatorExpecting holds a single expected closing character, so once < opens an address scope a following ( is not recognized as an operator and the RFC 5322 comment survives verbatim in the parsed address. An attacker can have a recipient address approved by an application's own domain allow-list check and then sent differently on the wire by supplying a value such as Legit User <user@good-corp.com(x)evil.com>, since the parentheses reach envelope.to and the RCPT TO command unchanged, where a conformant server rejects the transaction and a server that does strip comments resolves a different domain than the validator read. No recovery path applies, because _recoverAddrSpec returns immediately when the address contains no whitespace and the angle bracket path inserts none, and every field funnelling through MimeNode._parseAddresses, including to, cc, bcc, from, replyTo, and an explicit envelope, is affected identically.

Remediation

Upgrade nodemailer to version 10.0.13 or higher.

References