Vulnerabilities in pkg:npm/aedes

PACKAGE
Advisory Identifier: GHSA-4cmx-hrq9-c23p
Advisory Summary

CVE-2018-3778 is a MODERATE (CVSS 5.3) improper authorization vulnerability (CWE-285: Improper Authorization) affecting Aedes libraries in the npm ecosystem. The issue involves improper authorization in aedes. Remediation is available by upgrading affected packages to version 0.35.1.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/aedes

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/aedes. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-4cmx-hrq9-c23p CVE-2018-3778 MODERATE Improper Authorization in aedes
GHSA-gh78-48h3-frjq CVE-2020-13410 HIGH Improper exception handling in Aedes
GHSA-5hx7-77g4-wqx3 - MODERATE Incorrect Authorization

CVE-2018-3778 at a Glance

CVE Identifier CVE-2018-3778
GHSA Identifier GHSA-4cmx-hrq9-c23p
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-285: Improper Authorization
Affected Product Aedes
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2018-3778

To remediate this vulnerability, upgrade all affected Aedes dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

aedes fixed: 0.35.1
npm install aedes@0.35.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls aedes

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2018-3778, inspect your project dependencies using npm:

npm ls aedes

Analyze the terminal output to locate any version of Aedes in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.35.1), your application is affected.

Note: The npm ls aedes command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In Aedes, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Versions of `aedes` before 0.35.1 does not respect its own authorization rules when a client sets a `Last Will`. ## Recommendation Update to version 0.35.1 or later.

CVE-2018-3778 Affected Aedes Versions

1 component(s)
Fixed Versions:
0.35.1
Product / Package Ecosystem Affected Versions Fixed Version
aedes
npm
< 0.35.1
0.35.1

References

Frequently Asked Questions

What is CVE-2018-3778?
CVE-2018-3778 is a security vulnerability in Aedes involving Improper Authorization in aedes under CWE-285: Improper Authorization.
Which Aedes versions are affected?
Affected versions include releases prior to 0.35.1 across affected packages: aedes.
What version fixes CVE-2018-3778?
Upgrading to 0.35.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aedes affected?
Yes, aedes is affected in releases prior to 0.35.1. Upgrade your dependency to 0.35.1 or later.
What is the CVSS score of CVE-2018-3778?
CVE-2018-3778 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2018-3778?
CVE-2018-3778 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check npm dependencies for CVE-2018-3778?
Run the dependency tree command: 'npm ls aedes'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4cmx-hrq9-c23p",
  "modified" : "2023-04-21T18:30:53Z",
  "published" : "2018-08-15T20:03:22Z",
  "aliases" : [ "CVE-2018-3778" ],
  "summary" : "Improper Authorization in aedes",
  "details" : "Versions of `aedes` before 0.35.1 does not respect its own authorization rules when a client sets a `Last Will`.\n\n\n## Recommendation\n\nUpdate to version 0.35.1 or later.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "aedes"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.35.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-3778"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moscajs/aedes/issues/211"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moscajs/aedes/issues/212"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moscajs/aedes/commit/ffbc1702bb24b596afbb96407cc6db234a4044a8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/moscajs/aedes"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nodejs/security-wg/blob/master/vuln/npm/457.json"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285", "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T20:58:11Z",
    "nvd_published_at" : "2018-08-08T20:29:00Z"
  }
}