CVE-2025-57354
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.
Description as published by the source, in English.
Key facts
- Published
- 2025-09-24
- Last modified
- 2026-06-17
- Assigned by
- cve@mitre.org
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L- Scored by
- 134c704f-9b21-4f2e-91b3-4a467353bcc0
- Probability of exploitation
-
0.5 %
higher than 37 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| counterpart (npm) | ≤ 0.18.6 | Affected |
Weakness type
-
CWE-1321: Improperly Controlled Modification of Object Prototype Attributes
The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1574.010: Services File Permissions Weakness
References
- https://github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-5…
- https://github.com/martinandert/counterpart/issues/54
Related at Berigo
Articles
-
EU and UK sanction Russian cyber actors
Same product
2026-07-13
The EU and UK attribute infiltration of government networks and critical infrastructure sabotage to Russia and impose sanctions.
-
GigaWiper combines surveillance with three wiper functions
Same product
2026-07-09
Microsoft describes GigaWiper, a backdoor assembled from older malware that surveils, remotely controls and destroys data.
-
ESET: Gamaredon hides command traffic behind everyday web services
Same product
2026-06-25
ESET reports Gamaredon ran 35 spearphishing campaigns in 2025 and increasingly hid its command infrastructure behind legitimate services.
-
Progress fixes critical authentication flaw in MOVEit Automation
Same product
2026-05-01
CVE-2026-4670, rated CVSS 9.8, can give attackers administrative control of MOVEit Automation. Progress urges prompt upgrades.
Services
-
NIS2 for the Board
NIS2 has not yet been implemented in Norwegian law. Berigo helps the board establish which requirements the organisation is subject to, and supports …
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.