high7.5
CVE-2025-57328
toggle-array vulnerable to prototype pollution
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | toggle-array | <= 1.0.1 | none recorded |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Jonschlinkert | Toggle-Array | through 1.0.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/VulnSageAgent/PoCs/blob/main/JavaScript/prototype-pollution/toggle-array%401.0.1/index.js
- https://github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57328
- https://github.com/advisories/GHSA-34q3-8x9v-j957
- https://nvd.nist.gov/vuln/detail/CVE-2025-57328