6.5medium
ts-fns has prototype pollution vulnerability
- Severity
- 6.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.43% (higher than 39% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-g7wq-wggw-vmhg
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| ts-fns (npm) | up to 13.1.3 | GitHub Advisory Database |
All scores
| CISA-ADP | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
| GitHub | medium 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Existe una vulnerabilidad de Contaminación de Prototipos en las versiones del paquete ts-fns anteriores a la 13.0.7, donde una validación insuficiente de las claves proporcionadas por el usuario en la función assign permite a los atacantes manipular la cadena Object.prototype. Al explotar esta falla, los adversarios pueden inyectar propiedades arbitrarias en el prototipo del objeto global, lo que podría llevar a caídas de la aplicación, comportamientos inesperados de ejecución de código o omisión de lógicas de validación críticas para la seguridad dependientes de la integridad del prototipo. La vulnerabilidad se origina en un manejo inadecuado de las operaciones de asignación de propiedades profundas dentro de las funciones de la API pública de la biblioteca. Este problema sigue sin resolverse en la última versión disponible.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-57351 changed 2025-09-25 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-g7wq-wggw-vmhg changed 2025-09-25 | CC-BY-4.0 |
| NVD | CVE-2025-57351 changed 2026-06-17 | Public domain |