CVE-2025-57351 Details
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.
A prototype pollution vulnerability exists in the ts-fns package in versions prior to 13.0.7. The issue arises in the 'assign' function, where inadequate validation of user-supplied keys allows attackers to manipulate the Object.prototype chain. This manipulation can lead to the injection of arbitrary properties into the global object's prototype, causing application crashes, unexpected code execution, or bypassing security validation that relies on prototype integrity. The vulnerability is due to improper handling of deep property assignment in the library's public API.
Users should update to ts-fns version 13.0.7 or later, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 24, 2025CISA-ADP
Assessed Sep 25, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/tangshuang/ts-fns/issues/36 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://github.com/VulnSageAgent/PoCs/tree/main/JavaScript/prototype-pollution/CVE-2025-57351 | [email protected] | Technical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| tangshuang ts-fns | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 25, 2025 | CVE Modified | CISA-ADP |
| Sep 24, 2025 | New CVE Received | [email protected] |
Volerion