CVE-2024-21529: dset prototype pollution vulnerability

CVE-2024-21529 · Severity: low · CVSS 3.1 · Published 2024-09-11

dset is a popular JavaScript utility library used to safely set nested object properties. A prototype pollution vulnerability in versions before 3.1.4 allows attackers to inject malicious properties into the shared Object prototype, potentially affecting all objects and functions throughout an application. This could enable unauthorized modification of application behavior, data manipulation, or service disruption across the entire system.

Technologies: dset (npm). Vendors: npm.

Quick answers

Is CVE-2024-21529 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-21529 being exploited in the wild.
How severe is CVE-2024-21529?
Low severity, with a CVSS score of 3.1, published 11 September 2024.
Which products and versions are affected?
dset (npm) SEMVER:introduced=0,fixed=3.1.4.
Is there a fix for CVE-2024-21529?
Yes. dset (npm): upgrade to 3.1.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2024-21529 attacked?
It is attacked over the network.
Am I affected by CVE-2024-21529?
Check whether you run dset (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • dset (npm): upgrade to 3.1.4 or later
    npm install dset@3.1.4

Technical details

dset versions before 3.1.4 are vulnerable to prototype pollution via the dset function due to improper sanitization of user input. The vulnerability allows attackers to inject malicious properties using the __proto__ built-in Object property, which are recursively assigned to all objects in the program (CWE-1321). The attack requires network access but no authentication or user interaction; an attacker can supply a crafted key string containing __proto__ to trigger the vulnerability. This enables injection of arbitrary properties into the shared prototype chain, potentially allowing arbitrary object property manipulation across all application instances. A patch is available in version 3.1.4.

Affected products

  • Luke Edwards dset before 3.1.4

Identifiers

  • CVE-2024-21529
  • GHSA-f6v4-cf5j-vf3w

Timeline

  • 2024-09-11: disclosed
  • 2024-09-11: patched: version 3.1.4 released

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.