{"id":"CVE-2025-57354","aliases":["CVE-2025-57354","GHSA-2488-w585-72ch"],"related":[],"kind":"vulnerability","state":"published","title":"counterpart vulnerable to prototype pollution","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad existe en la biblioteca 'counterpart' para Node.js y el navegador debido a una sanitización insuficiente de la entrada controlada por el usuario en el procesamiento de claves de traducción. Las versiones afectadas anteriores a la 0.18.6 permiten a los atacantes manipular la funcionalidad de traducción de la biblioteca al proporcionar claves maliciosamente elaboradas que contienen elementos de la cadena de prototipos (por ejemplo, __proto__), lo que lleva a la contaminación de prototipos. Esta vulnerabilidad permite a los adversarios inyectar propiedades arbitrarias en el prototipo de objeto de JavaScript a través del primer parámetro del método traducir cuando se combina con configuraciones de separador específicas, lo que podría resultar en condiciones de denegación de servicio o ejecución remota de código en aplicaciones vulnerables. El problema surge del fallo de la librería al no validar o neutralizar correctamente los caracteres especiales en las entradas de claves de traducción antes del procesamiento.","source":"nvd"}],"published":"2025-09-24T00:00:00.000Z","modified":"2026-06-17T09:43:04.003Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.18.6"}],"ecosystem":"npm","package":"counterpart","purl":"pkg:npm/counterpart","source":"ghsa"}],"references":[{"url":"https://github.com/martinandert/counterpart/issues/54","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57354","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57354","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/martinandert/counterpart","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-09-25T18:26:50.936Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-57354","url":"https://www.cve.org/CVERecord?id=CVE-2025-57354","licence":"CVE Terms of Use","modified":"2025-09-25T18:27:33.481Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2488-w585-72ch","url":"https://github.com/advisories/GHSA-2488-w585-72ch","licence":"CC-BY-4.0","modified":"2025-09-26T17:27:25.315Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-57354","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57354","licence":"Public domain","modified":"2026-06-17T09:43:04.003Z"}],"updatedAt":"2026-11-25T22:59:05.140Z","epss":{"score":0.00485,"percentile":0.43421,"date":"2026-12-01T12:00:22.000Z"}}