Vulnerabilities in pkg:npm/@aedart/support

PACKAGE
Advisory Identifier: GHSA-wwxh-74fx-33c6
Advisory Summary

CVE-2023-30857 is a LOW (CVSS 3.7) possible prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting @aedart/support libraries in the npm ecosystem. The issue involves possible prototype pollution in metadata record, when using meta decorator. Remediation is available by upgrading affected packages to version 0.6.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@aedart/support

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-wwxh-74fx-33c6 CVE-2023-30857 LOW Possible prototype pollution in metadata record, when using meta decorator

CVE-2023-30857 at a Glance

CVE Identifier CVE-2023-30857
GHSA Identifier GHSA-wwxh-74fx-33c6
Severity LOW
CVSS v3.1 Base Score 3.7
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product @aedart/support
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 3.7

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

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
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-2023-30857

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

@aedart/support fixed: 0.6.1
npm install @aedart/support@0.6.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 @aedart/support

How to Check if You Are Affected

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

npm ls @aedart/support

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

Note: The npm ls @aedart/support 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-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In @aedart/support, 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

### Impact Possible prototype pollution for the `MetadataRecord`, when merged with a base class' metadata object, in `meta` decorator from the `@aedart/support` package. The likelihood is questionable, given that a class' metadata can only be set or altered when the class is decorated via `meta()`. Furthermore, object(s) of sensitive nature would have to be stored as metadata, before this can become a vulnerability. ### Patches Has been patched in version `0.6.1`.

CVE-2023-30857 Affected @aedart/support Versions

1 component(s)
Fixed Versions:
0.6.1
Product / Package Ecosystem Affected Versions Fixed Version
@aedart/support
npm
< 0.6.1
0.6.1

References

Frequently Asked Questions

What is CVE-2023-30857?
CVE-2023-30857 is a security vulnerability in @aedart/support involving Possible prototype pollution in metadata record, when using meta decorator under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which @aedart/support versions are affected?
Affected versions include releases prior to 0.6.1 across affected packages: @aedart/support.
What version fixes CVE-2023-30857?
Upgrading to 0.6.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @aedart/support affected?
Yes, @aedart/support is affected in releases prior to 0.6.1. Upgrade your dependency to 0.6.1 or later.
What is the CVSS score of CVE-2023-30857?
CVE-2023-30857 has a CVSS v3.1 base score of 3.7 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2023-30857?
CVE-2023-30857 is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.).
How can I check npm dependencies for CVE-2023-30857?
Run the dependency tree command: 'npm ls @aedart/support'. 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-wwxh-74fx-33c6",
  "modified" : "2023-05-01T14:01:02Z",
  "published" : "2023-05-01T14:01:02Z",
  "aliases" : [ "CVE-2023-30857" ],
  "summary" : "Possible prototype pollution in metadata record, when using meta decorator",
  "details" : "### Impact\n\nPossible prototype pollution for the `MetadataRecord`, when merged with a base class' metadata object, in `meta` decorator from the `@aedart/support` package.\n\nThe likelihood is questionable, given that a class' metadata can only be set or altered when the class is decorated via `meta()`. Furthermore, object(s) of sensitive nature would have to be stored as metadata, before this can become a vulnerability.\n### Patches\n\nHas been patched in version `0.6.1`.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@aedart/support"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.6.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/aedart/ion/security/advisories/GHSA-wwxh-74fx-33c6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-30857"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aedart/ion/commit/c3e2ee08710d4164d796ecb66ed291335dae9291"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/aedart/ion"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-05-01T14:01:02Z",
    "nvd_published_at" : "2023-04-28T21:15:09Z"
  }
}