CVE-2025-57354
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-09-24

Last updated on: 2025-09-26

Assigner: MITRE

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-09-24
Last Modified
2025-09-26
Generated
2026-05-07
AI Q&A
2025-09-24
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
martinandert counterpart *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart