Skip to content

CVE-2025-57354 counterpart vulnerable to prototype pollution

MediumCVSS 6.5 EPSS 0.49% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

A vulnerability exists in the 'counterpart' library for Node.js and the browser due to insufficient sanitization of user-controlled input in translation key processing. The affected versions prior to 0.18.6 allow attackers to manipulate the library's translation functionality by supplying maliciously crafted keys containing prototype chain elements (e.g., proto ), leading to prototype pollution. This weakness enables adversaries to inject arbitrary properties into the JavaScript Object prototype through the first parameter of the translate method when combined with specific separator configurations, potentially resulting in denial-of-service conditions or remote code execution in vulnerable applications. The issue arises from the library's failure to properly validate or neutralize special characters in translation key inputs before processing.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
npm counterpart(npm) <= 0.18.6 after 0.18.6 Fixed

Affected products

ProductAffected versionsFixed in
npm counterpart(npm) <= 0.18.6 No fix listed

References