# CVE-2025-57351: ts-fns has prototype pollution vulnerability

- 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.43%, higher than 39% 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:03.563Z
- Also known as: GHSA-g7wq-wggw-vmhg
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- ts-fns (npm): up to 13.1.3

## 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:4.0 Medium `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`

## References

- <https://github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57351> (exploit, 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)

## Sources

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

---

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