---
title: "GHSA-23wx-cgxq-vpwx: Prototype Pollution in dset"
description: "Moderate severity. Prototype Pollution in dset. Affects dset; fixed in 3.1.2."
url: https://inlinr.com/advisories/GHSA-23wx-cgxq-vpwx
lang: en
---

[Packages](https://inlinr.com/packages) / [dset](https://inlinr.com/packages/dset) / [Security](https://inlinr.com/packages/dset/security)

Moderate Vulnerability GHSA-23wx-cgxq-vpwx CVE-2022-25645 Published 3 May 2022

# Prototype Pollution in dset

Your version 

Affected releases · [dset](https://inlinr.com/packages/dset)

- 3.x 3.0.0 – 3.1.1 Fixed in 3.1.2
- 2.x and older 0.0.0 – 2.1.0 No fix, no longer updated

On 3.x, the newest line:

```
npm install dset@3.1.2
```

Every release on a timeline

3.x 

1. Affected

3.0.0 – 3.1.1  
3 releases
2. Fixed

3.1.2 – 3.1.4  
3 releases, latest

2.x 

1. Affected

2.0.0 – 2.1.0  
3 releases

1.x 

1. Affected

1.0.0 – 1.0.1  
2 releases

0.x 

1. Affected

0.0.0  
1 release

12 stable releases of dset, oldest to newest, one row per major.

## What happens

All versions of `dset` prior to 3.1.2 are vulnerable to Prototype Pollution via `dset/merge` mode, as the `dset` function checks for prototype pollution by validating if the top-level path contains `__proto__`, `constructor` or `prototype`. By crafting a malicious object, it is possible to bypass this check and achieve prototype pollution.

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: none
- **Integrity**: high
- **Availability**: low

CVSS:3.1/​AV:N/​AC:H/​PR:N/​UI:N/​S:U/​C:N/​I:H/​A:L

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-25645 "https://nvd.nist.gov/vuln/detail/CVE-2022-25645")  
nvd.nist.gov/vuln/detail/CVE-2022-25645
- [Package](https://github.com/lukeed/dset "https://github.com/lukeed/dset")  
github.com/lukeed/dset
- [Reference](https://github.com/lukeed/dset/blob/master/src/merge.js%23L9 "https://github.com/lukeed/dset/blob/master/src/merge.js%23L9")  
github.com/lukeed/dset/blob/master/src/merge.js…
- [Reference](https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2431974 "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2431974")  
snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2431974
- [Reference](https://snyk.io/vuln/SNYK-JS-DSET-2330881 "https://snyk.io/vuln/SNYK-JS-DSET-2330881")  
snyk.io/vuln/SNYK-JS-DSET-2330881

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
