Vulnerabilities

7 via 11 paths

Dependencies

110

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
  • 6
Status
  • 7
  • 0
  • 0

high severity

Uncontrolled Recursion

  • Vulnerable module: ioredis
  • Introduced through: aedes-persistence-redis@11.2.2 and mqemitter-redis@7.2.1

Detailed paths

  • Introduced through: aedes-cli@moscajs/aedes-cli › aedes-persistence-redis@11.2.2 › ioredis@5.11.1
  • Introduced through: aedes-cli@moscajs/aedes-cli › mqemitter-redis@7.2.1 › ioredis@5.11.1
    Remediation: Upgrade to mqemitter-redis@8.0.0.

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

medium severity

Asymmetric Resource Consumption (Amplification)

  • Vulnerable module: minimatch
  • Introduced through: minimatch@10.2.6

Detailed paths

  • Introduced through: aedes-cli@moscajs/aedes-cli › minimatch@10.2.6
    Remediation: Upgrade to minimatch@11.0.1.

Overview

minimatch is a minimal matching utility.

Affected versions of this package are vulnerable to Asymmetric Resource Consumption (Amplification) in the firstPhasePreProcess method, where the **/.. transform clones a globParts entry and pushes the clone back onto the same array inside a do...while (didSomething) fixpoint loop. An attacker can exhaust CPU and memory by supplying a glob pattern whose **/.. sequences regenerate entries during preprocessing, which secondPhasePreProcess then compares in an O(n^2) pairwise partsMatch pass over the expanded set. Exploitation requires the pattern to be parsed with optimizationLevel set to 2 or higher.

Remediation

Upgrade minimatch to version 11.0.1 or higher.

References

medium severity
new

Improper Neutralization of Null Byte or NUL Character

  • Vulnerable module: mongodb
  • Introduced through: aedes-persistence-mongodb@9.5.0 and mqemitter-mongodb@9.1.0

Detailed paths

  • Introduced through: aedes-cli@moscajs/aedes-cli › aedes-persistence-mongodb@9.5.0 › mongodb@6.17.0
  • Introduced through: aedes-cli@moscajs/aedes-cli › mqemitter-mongodb@9.1.0 › mongodb@6.22.0

Overview

mongodb is an official MongoDB driver for Node.js.

Affected versions of this package are vulnerable to Improper Neutralization of Null Byte or NUL Character in the plain.js PLAIN authentication provider, which builds the SASL PLAIN message by joining the username and password with NUL separators without rejecting NUL characters inside either field. A user with valid credentials for one identity can authenticate as that identity instead of the one the application constructed, bypassing application-side identity checks such as an allow list or a required username suffix, by supplying a username containing NUL-separated authentication and password values. This affects only applications that use authMechanism: 'PLAIN' and build the username or password from less trusted input.

Workaround

This vulnerability can be avoided by rejecting any username or password that contains a NUL character (\0, or %00 in a connection string) before passing it to MongoClient.

Remediation

Upgrade mongodb to version 7.9.1 or higher.

References

medium severity

Improper Validation of Specified Index, Position, or Offset in Input

  • Vulnerable module: uuid
  • Introduced through: mqemitter-redis@7.2.1

Detailed paths

  • Introduced through: aedes-cli@moscajs/aedes-cli › mqemitter-redis@7.2.1 › hyperid@3.3.0 › uuid@8.3.2
    Remediation: Upgrade to mqemitter-redis@8.0.0.

Overview

uuid is a RFC4122 (v1, v4, and v5) compliant UUID library.

Affected versions of this package are vulnerable to Improper Validation of Specified Index, Position, or Offset in Input due to accepting external output buffers but not rejecting out-of-range writes (small buf or large offset). This inconsistency allows silent partial writes into caller-provided buffers.

PoC

cd /home/StrawHat/uuid
npm ci
npm run build

node --input-type=module -e "
import {v4,v5,v6} from './dist-node/index.js';
const ns='6ba7b810-9dad-11d1-80b4-00c04fd430c8';
for (const [name,fn] of [
  ['v4',()=>v4({},new Uint8Array(8),4)],
  ['v5',()=>v5('x',ns,new Uint8Array(8),4)],
  ['v6',()=>v6({},new Uint8Array(8),4)],
]) {
  try { fn(); console.log(name,'NO_THROW'); }
  catch(e){ console.log(name,'THREW',e.name); }
}"

Remediation

Upgrade uuid to version 11.1.1, 14.0.0 or higher.

References

medium severity
new

Improper Restriction of Communication Channel to Intended Endpoints

  • Vulnerable module: mongodb
  • Introduced through: aedes-persistence-mongodb@9.5.0 and mqemitter-mongodb@9.1.0

Detailed paths

  • Introduced through: aedes-cli@moscajs/aedes-cli › aedes-persistence-mongodb@9.5.0 › mongodb@6.17.0
  • Introduced through: aedes-cli@moscajs/aedes-cli › mqemitter-mongodb@9.1.0 › mongodb@6.22.0

Overview

mongodb is an official MongoDB driver for Node.js.

Affected versions of this package are vulnerable to Improper Restriction of Communication Channel to Intended Endpoints via OIDC ENVIRONMENT and callback confusion in MongoCredentials validation, where specifying both an ENVIRONMENT value and an OIDC_CALLBACK or OIDC_HUMAN_CALLBACK bypasses the ALLOWED_HOSTS restriction. A bearer token produced by the application's own login callback can therefore be transmitted to a host outside the configured set of permitted hosts, resulting in unintended disclosure of that credential.

Remediation

Upgrade mongodb to version 7.9.0 or higher.

References

medium severity
new

Information Exposure

  • Vulnerable module: mongodb
  • Introduced through: aedes-persistence-mongodb@9.5.0 and mqemitter-mongodb@9.1.0

Detailed paths

  • Introduced through: aedes-cli@moscajs/aedes-cli › aedes-persistence-mongodb@9.5.0 › mongodb@6.17.0
  • Introduced through: aedes-cli@moscajs/aedes-cli › mqemitter-mongodb@9.1.0 › mongodb@6.22.0

Overview

mongodb is an official MongoDB driver for Node.js.

Affected versions of this package are vulnerable to Information Exposure in the HostAddress class in utils.ts and the parseOptions function in connection_string.ts, which include connection-string components in the messages and cause of errors thrown during MongoClient construction and connection. An attacker with access to the application's logs can obtain database credentials when the application passes a connection string with credentials but no valid host, because the user:pass portion is parsed as host:port and appears in the resulting Unable to parse ... with URL error and its cause.input. This affects only applications that build connection strings from user or configuration input where a missing or malformed host can reach the driver, and that log driver errors or MongoClient instances.

Workaround

This vulnerability can be avoided by validating that connection strings contain a host before passing them to the driver, and by redacting the message and cause of errors raised during MongoClient construction or connection before logging them.

Remediation

Upgrade mongodb to version 7.9.1 or higher.

References

medium severity
new

Improper Encoding or Escaping of Output

  • Vulnerable module: minimatch
  • Introduced through: minimatch@10.2.6

Detailed paths

  • Introduced through: aedes-cli@moscajs/aedes-cli › minimatch@10.2.6
    Remediation: Upgrade to minimatch@11.0.8.

Overview

minimatch is a minimal matching utility.

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output via minimatch.escape() in src/escape.ts, which fails to neutralize four classes of special input before the result is used as a glob pattern. A leading ! passes through unescaped and becomes a negation operator, causing the pattern to match every path except the intended literal. A leading # passes through and becomes a comment, causing the pattern to match nothing. When the escaped output is combined with a brace group (either caller-supplied or present in the user text itself), brace-expansion collapses the \\ escape sequence and reactivates the following magic character (such as *), widening the match. With { windowsPathsNoEscape: true, magicalBraces: true }, brace-literal encoding using character classes ([{]) is misinterpreted by brace-expansion, producing patterns that match unintended strings and fail to match the intended literal. Applications that pass attacker-controlled text through escape() and use the result for authorization, filtering, or path-selection decisions may grant or deny access to unintended paths.

Workaround

Until upgrading, the following per-behavior mitigations can be applied (each measured on 11.0.5):

  • Behaviors 1 and 2 (leading ! and #): pass { nonegate: true, nocomment: true } when matching escaped patterns.
  • Behavior 3 (escaped backslash plus brace group): do not combine escaped text with a brace group, and use { magicalBraces: true } so user braces are escaped. Alternatively, pass nobrace: true to stop the over-match, but note that the caller's brace group then also becomes literal.
  • Behavior 4 (windowsPathsNoEscape + magicalBraces): pass nobrace: true when matching.

Remediation

Upgrade minimatch to version 11.0.8 or higher.

References