# CVE-2021-25948: Prototype Pollution

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.30%, higher than 88% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-06-10T11:55:36.000Z
- Modified: 2026-06-17T03:42:39.637Z
- Also known as: GHSA-x3wr-v4wx-5qpc
- Weaknesses: CWE-915, CWE-1321
- Assigned by: Mend

## Description

Prototype pollution vulnerability in 'expand-hash' versions 0.1.0 through 1.0.1 allows an attacker to cause a denial of service and may lead to remote code execution.

(As written by CVE List.)

## Affected

- expand-hash: 0.1.0, 0.1.1, 0.2.1, 0.2.2, 1.0.0, 1.0.1
- expand-hash (npm): up to 1.0.1
- expand-hash_project expand-hash: from 0.1.0 up to 1.0.1

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25948> (exploit, third-party-advisory, web)
- <https://github.com/doowb/expand-hash/blob/556913f6c2f05848110b5b8261cfc78e5ce3dc77/index.js#L19> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25948> (advisory)
- <https://github.com/doowb/expand-hash> (package)

## Sources

- CVE List: [CVE-2021-25948](https://www.cve.org/CVERecord?id=CVE-2021-25948), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-x3wr-v4wx-5qpc](https://github.com/advisories/GHSA-x3wr-v4wx-5qpc), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-25948](https://nvd.nist.gov/vuln/detail/CVE-2021-25948), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-25948 · Whole record: https://cve.day/CVE-2021-25948.json · Rebuilt by cve.day 2026-11-25T22:58:01.769Z
