CVE-2025-57351
MEDIUM 6.5CVSS 3.1ts-fns has prototype pollution vulnerability
A prototype pollution vulnerability exists in the ts-fns package versions prior to 13.0.7, where insufficient validation of user-provided keys in the assign function allows attackers to manipulate the Object.prototype chain. By leveraging this flaw, adversaries may inject arbitrary properties into the global object's prototype, potentially leading to application crashes, unexpected code execution behaviors, or bypasses of security-critical validation logic dependent on prototype integrity. The vulnerability stems from improper handling of deep property assignment operations within the library's public API functions. This issue remains unaddressed in the latest available version.
- Published
- 24 Sep 2025
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-1321
- Also known as
- GHSA-g7wq-wggw-vmhg
- Sources
- NVDJSONOSV GHSA-g7wq-wggw-vmhgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | ts-fns | <= 13.1.3 |
References
- https://github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57351 · WEB
- https://github.com/tangshuang/ts-fns/issues/36 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-57351 · ADVISORY
- https://github.com/tangshuang/ts-fns · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 24 Sep 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Sep 2025)