GHSA-2488-w585-72ch

Suggest an improvement
Source
https://github.com/advisories/GHSA-2488-w585-72ch
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-2488-w585-72ch/GHSA-2488-w585-72ch.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2488-w585-72ch
Aliases
  • CVE-2025-57354
Published
2025-09-24T18:30:32Z
Modified
2025-09-26T17:27:25.315989Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L CVSS Calculator
Summary
counterpart vulnerable to prototype pollution
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-1321"
    ],
    "github_reviewed_at": "2025-09-26T16:58:56Z",
    "github_reviewed": true,
    "severity": "MODERATE",
    "nvd_published_at": "2025-09-24T18:15:41Z"
}
References

Affected packages

npm / counterpart

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
0.18.6

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-2488-w585-72ch/GHSA-2488-w585-72ch.json"