PT-2021-3189 · Lodash · Lodash
Liyuan Chen
·
Published
2021-02-15
·
Updated
2025-07-20
·
CVE-2020-28500
CVSS v2.0
7.5
High
| Vector | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Name of the Vulnerable Software and Affected Versions
lodash versions prior to 4.17.21
Description
The issue is related to the
toNumber, trim, and trimEnd functions in the lodash library, which can lead to an uncontrolled consumption of resources, potentially causing a denial of service. This can be exploited by a remote attacker. The vulnerability is a Regular Expression Denial of Service (ReDoS) issue.Recommendations
For versions prior to 4.17.21, update to version 4.17.21 or later to resolve the issue.
As a temporary workaround, consider disabling the
toNumber, trim, and trimEnd functions until a patch is available.
Restrict the use of these functions to minimize the risk of exploitation.Exploit
Fix
Resource Exhaustion
DoS
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Lodash