{"id":"CVE-2025-57351","aliases":["CVE-2025-57351","GHSA-g7wq-wggw-vmhg"],"related":[],"kind":"vulnerability","state":"published","title":"ts-fns has prototype pollution vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-09-24T00:00:00.000Z","modified":"2026-06-17T09:43:03.563Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"13.1.3"}],"ecosystem":"npm","package":"ts-fns","purl":"pkg:npm/ts-fns","source":"ghsa"}],"references":[{"url":"https://github.com/tangshuang/ts-fns/issues/36","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57351","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57351","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/tangshuang/ts-fns","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-09-25T18:52:31.746Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-57351","url":"https://www.cve.org/CVERecord?id=CVE-2025-57351","licence":"CVE Terms of Use","modified":"2025-09-25T18:53:03.622Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g7wq-wggw-vmhg","url":"https://github.com/advisories/GHSA-g7wq-wggw-vmhg","licence":"CC-BY-4.0","modified":"2025-09-25T17:57:26.297Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-57351","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57351","licence":"Public domain","modified":"2026-06-17T09:43:03.563Z"}],"updatedAt":"2026-11-25T22:59:05.143Z","epss":{"score":0.00429,"percentile":0.39057,"date":"2026-12-01T12:00:22.000Z"}}