Advisory

GHSA-g7wq-wggw-vmhg

Also known as: CVE-2025-57351

Summary

ts-fns has prototype pollution vulnerability

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-09-24 21:30 UTC
Modified
2025-09-25 17:57 UTC

Affected packages and fixes

ts-fns

npm · All systems

Affected

  • introduced 0, last affected 13.1.3 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences