CVE-2023-30857: @aedart/support Possible Prototype Pollution Vulnerability
LOWCVE-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.
CVE-2023-30857 at a Glance
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).
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.
npm install @aedart/support@0.6.1
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
CVE-2023-30857 Affected @aedart/support Versions
1 component(s)| 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?
Which @aedart/support versions are affected?
What version fixes CVE-2023-30857?
Is @aedart/support affected?
What is the CVSS score of CVE-2023-30857?
What CWE is associated with CVE-2023-30857?
How can I check npm dependencies for CVE-2023-30857?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}