Vulnerabilities

7 via 10 paths

Dependencies

459

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 7
  • 9
Severity
  • 2
  • 4
  • 10
Status
  • 16
  • 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

high severity
new

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. We score this differently from NVD: prototype pollution that achieves property injection into Object.prototype with no authentication and no user interaction warrants a High integrity impact, consistent with the supplied CVSS vectors.

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

high severity
new

Uncontrolled Recursion

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

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.3 › 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: zod
  • Introduced through: zod@4.6.5 and @modelcontextprotocol/server@2.3.0

Detailed paths

  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › zod@4.6.5
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @modelcontextprotocol/server@2.3.0 › zod@4.6.5
  • Introduced through: @zone-eu/wildduck@nodemailer/wildduck › @modelcontextprotocol/server@2.3.0 › @modelcontextprotocol/core@2.3.0 › zod@4.6.5

Overview

zod is a TypeScript-first schema declaration and validation library with static type inference

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the handleArrayResult parse logic in $ZodArray, which accumulates every validation issue for each failing element in a large array with no cap or early termination. An attacker can submit a large array to an application using an array schema without a length constraint, causing the process to allocate excessive issue objects and crash due to out-of-memory conditions.

Remediation

There is no fixed version for zod.

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