Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. counterpart
  4. ›
  5. CVE-2025-57354

CVE-2025-57354: counterpart vulnerable to prototype pollution

September 24, 2025 (updated September 26, 2025)

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.

References

  • github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57354
  • github.com/advisories/GHSA-2488-w585-72ch
  • github.com/martinandert/counterpart
  • github.com/martinandert/counterpart/issues/54
  • nvd.nist.gov/vuln/detail/CVE-2025-57354

Code Behaviors & Features

Detect and mitigate CVE-2025-57354 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.18.6

Solution

Unfortunately, there is no solution available yet.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/counterpart/CVE-2025-57354.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:35:50 +0000.