Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. toggle-array
  4. ›
  5. CVE-2025-57328

CVE-2025-57328: toggle-array vulnerable to prototype pollution

September 24, 2025 (updated September 26, 2025)

toggle-array is a package designed to enables a property on the object at the specified index, while disabling the property on all other objects. A Prototype Pollution vulnerability in the enable and disable function of toggle-array v1.0.1 and before allows attackers to inject properties on Object.prototype via supplying a crafted payload, causing denial of service (DoS) as the minimum consequence.

References

  • github.com/VulnSageAgent/PoCs/blob/main/JavaScript/prototype-pollution/toggle-array%401.0.1/index.js
  • github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57328
  • github.com/advisories/GHSA-34q3-8x9v-j957
  • github.com/jonschlinkert/toggle-array
  • nvd.nist.gov/vuln/detail/CVE-2025-57328

Code Behaviors & Features

Detect and mitigate CVE-2025-57328 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.0.1

Solution

Unfortunately, there is no solution available yet.

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/toggle-array/CVE-2025-57328.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 08 Oct 2025 00:20:31 +0000.