CVE-2021-25948
CRITICAL 9.8CVSS 3.1Prototype Pollution
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.
- Published
- 10 Jun 2021
- Last modified
- 17 Jun 2026
- Assigned by
- vulnerabilitylab@mend.io
- NVD status
- Modified
- Weakness
- CWE-1321CWE-915
- Also known as
- GHSA-x3wr-v4wx-5qpc
- Sources
- NVDJSONOSV GHSA-x3wr-v4wx-5qpcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | expand-hash_project | expand-hashcpe:2.3:a:expand-hash_project:expand-hash:*:*:*:*:*:*:*:* |
>= 0.1.0, <= 1.0.1 | |
| OSV | npm | expand-hash | <= 1.0.1 |
References
- https://github.com/doowb/expand-hash/blob/556913f6c2f05848110b5b8261cfc78e5ce3dc77/index.js#L19 · Exploit, Third Party Advisory, WEB
- https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25948 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-25948 · ADVISORY
- https://github.com/doowb/expand-hash · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 10 Jun 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 21 Jun 2021)