CVE-2025-57354
BaseFortify
Publication date: 2025-09-24
Last updated on: 2025-09-26
Assigner: MITRE
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| martinandert | counterpart | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-1321 | 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-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability in the 'counterpart' library for Node.js and browsers is caused by insufficient sanitization of user-controlled input in translation key processing. Attackers can supply malicious keys containing prototype chain elements like '__proto__', leading to prototype pollution. This means they can inject arbitrary properties into the JavaScript Object prototype via the translate method, potentially causing denial-of-service or remote code execution in affected applications.
How can this vulnerability impact me? :
The vulnerability can allow attackers to manipulate the translation functionality to inject arbitrary properties into the JavaScript Object prototype. This can lead to denial-of-service conditions or remote code execution, which could compromise the availability and security of your application.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, update the 'counterpart' library to version 0.18.6 or later, where the issue has been fixed. Additionally, avoid using untrusted user input as translation keys, especially those containing prototype chain elements like '__proto__'. Implement input validation or sanitization to neutralize special characters in translation keys before processing.