Vulnerabilities in pkg:npm/dset
PACKAGECVE-2024-21529 is a HIGH (CVSS 8.2) dset prototype pollution vulnerability vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Dset libraries in the npm ecosystem. The issue involves dset prototype pollution vulnerability. Remediation is available by upgrading affected packages to version 3.1.4.
pkg:npm/dset
Vulnerability advisories affecting package pkg:npm/dset. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-f6v4-cf5j-vf3w | CVE-2024-21529 | HIGH | dset Prototype Pollution vulnerability |
| GHSA-q4xc-7cw8-cgfj | CVE-2020-28277 | CRITICAL | dset vulnerable to prototype pollution |
| GHSA-23wx-cgxq-vpwx | CVE-2022-25645 | MODERATE | Prototype Pollution in dset |
CVE-2024-21529 at a Glance
Security Impact
CVSS: 8.2
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:H/A:L).
How to Fix CVE-2024-21529
To remediate this vulnerability, upgrade all affected Dset 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 dset@3.1.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls dset
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-21529, inspect your project dependencies using npm:
npm ls dset
Analyze the terminal output to locate any version of Dset in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.4), your application is affected.
Note: The npm ls dset 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 Dset, 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-2024-21529 Affected Dset Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
dset
|
npm |
< 3.1.4
|
3.1.4
|
References
Frequently Asked Questions
What is CVE-2024-21529?
Which Dset versions are affected?
What version fixes CVE-2024-21529?
Is dset affected?
What is the CVSS score of CVE-2024-21529?
What CWE is associated with CVE-2024-21529?
How can I check npm dependencies for CVE-2024-21529?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f6v4-cf5j-vf3w",
"modified" : "2024-09-11T23:11:10Z",
"published" : "2024-09-11T06:30:39Z",
"aliases" : [ "CVE-2024-21529" ],
"summary" : "dset Prototype Pollution vulnerability",
"details" : "Versions of the package dset before 3.1.4 are vulnerable to Prototype Pollution via the dset function due improper user input sanitization. This vulnerability allows the attacker to inject malicious object property using the built-in Object property __proto__, which is recursively assigned to all the objects in the program.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "dset"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.1.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-21529"
}, {
"type" : "WEB",
"url" : "https://github.com/lukeed/dset/commit/16d6154e085bef01e99f01330e5a421a7f098afa"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/lukeed/dset"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-DSET-7116691"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-11T23:11:10Z",
"nvd_published_at" : "2024-09-11T05:15:02Z"
}
}