# CVE-2025-57354: counterpart vulnerable to prototype pollution

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-24T00:00:00.000Z
- Modified: 2026-06-17T09:43:04.003Z
- Also known as: GHSA-2488-w585-72ch
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- counterpart (npm): up to 0.18.6

## Every score

- CISA-ADP: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`

## References

- <https://github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57354> (exploit, web)
- <https://github.com/martinandert/counterpart/issues/54> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-57354> (advisory)
- <https://github.com/martinandert/counterpart> (package)

## Sources

- CVE List: [CVE-2025-57354](https://www.cve.org/CVERecord?id=CVE-2025-57354), CVE Terms of Use, modified 2025-09-25
- GitHub Advisory Database: [GHSA-2488-w585-72ch](https://github.com/advisories/GHSA-2488-w585-72ch), CC-BY-4.0, modified 2025-09-26
- NVD: [CVE-2025-57354](https://nvd.nist.gov/vuln/detail/CVE-2025-57354), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-57354 · Whole record: https://cve.day/CVE-2025-57354.json · Rebuilt by cve.day 2026-11-25T22:59:05.140Z
