SecurityContext

CVE-2021-25948: expand-hash - Prototype Pollution

  • Cve: CVE-2021-25948
  • Name: expand-hash - Prototype Pollution
  • 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.
  • Impact: Attackers can cause denial of service and may execute arbitrary code remotely if exploited successfully.
  • Remediation: Update to the latest version of expand-hash, version 1.0.2 or later.
  • Vulnerability type: prototype_pollution
  • Vulnerability impact: denial_of_service, remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.03299
  • Epss percentile: 0.88833
  • Assignee: [email protected]
  • Published at: 2021-06-10T12:15:08Z
  • Age in days: 1993
  • Modified at: 2026-06-17T03:42:39Z
  • Public exploits total: 2
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-25948
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-1321Improperly Controlled Modification of Object Prototype Attributes

Public exploits

UrlSourceAdded date
https://github.com/doowb/expand-hash/blob/556913f6c2f05848110b5b8261cfc78e5ce3dc77/index.js#L19nvd2021-06-10
https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25948nvd2021-06-10

References

UrlSourceTags
https://github.com/doowb/expand-hash/blob/556913f6c2f05848110b5b8261cfc78e5ce3dc77/index.js#L19nvdExploit, Third Party Advisory
https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25948nvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
expand-hash_project:expand-hash>= 0.1.0, <= 1.0.1nonvd/v1/products/expand-hash_project/expand-hash

Projects

RepositoryLink kindsIndexedUrl
doowb/expand-hashpackageyes/v1/repositories/doowb/expand-hash

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2021-06-10
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts