CVE-2025-57351
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
ts-fns (npm)up to 13.1.3GitHub Advisory Database

All scores

CISA-ADP6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
GitHubmedium CVSS:4.0CVSS: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

CWE-1321

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

SourceRecordLicence
CVE ListCVE-2025-57351 changed 2025-09-25CVE Terms of Use
GitHub Advisory DatabaseGHSA-g7wq-wggw-vmhg changed 2025-09-25CC-BY-4.0
NVDCVE-2025-57351 changed 2026-06-17Public domain