Skip to content

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

HighCVSS 7.5 EPSS 0.39% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

Description

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
jonschlinkert toggle-array <= 1.0.1 after 1.0.1 Fixed
npm toggle-array(npm) <= 1.0.1 after 1.0.1 Fixed

Affected products

ProductAffected versionsFixed in
npm toggle-array(npm) <= 1.0.1 No fix listed
jonschlinkert toggle-array <= 1.0.1 No fix listed

References