Advisories
For your digest

lodash, lodash-es: Regular Expression Denial of Service (ReDoS) in lodash

It touches something Phylax follows. No evidence of use yet.

Does it affect what I run?

Checked in your browser. The version you type is not sent anywhere.

Who is affected

  • lodash (npm): from 4.0.0, before 4.17.21
  • lodash-es (npm): from 4.0.0, before 4.17.21
  • lodash.trimend (npm): from 4.0.0, up to and including 4.5.1
  • lodash.trim (npm): from 4.0.0, up to and including 4.5.1
  • lodash-rails (RubyGems): from 4.0.0, before 4.17.21

The fix

  • lodash (npm) fixed in 4.17.21

    npm
    npm install lodash@4.17.21
    pnpm
    pnpm add lodash@4.17.21
    yarn
    yarn add lodash@4.17.21
    bun
    bun add lodash@4.17.21
    Check what is installed
    npm ls lodash
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency lodash to 4.17.21 or the nearest later release, to fix CVE-2020-28500. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • lodash-es (npm) fixed in 4.17.21

    npm
    npm install lodash-es@4.17.21
    pnpm
    pnpm add lodash-es@4.17.21
    yarn
    yarn add lodash-es@4.17.21
    bun
    bun add lodash-es@4.17.21
    Check what is installed
    npm ls lodash-es
    Paste into Cursor, Lovable or Claude Code
    Upgrade the npm dependency lodash-es to 4.17.21 or the nearest later release, to fix CVE-2020-28500. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.
  • lodash-rails (RubyGems) fixed in 4.17.21

    bundler
    bundle update --conservative lodash-rails
    Check what is installed
    bundle info lodash-rails
    Paste into Cursor, Lovable or Claude Code
    Upgrade the RubyGems dependency lodash-rails to 4.17.21 or the nearest later release, to fix CVE-2020-28500. Change only what the upgrade needs: the manifest, the lockfile, and any code that breaks because of it. Do not change anything else and do not run commands unrelated to this upgrade. Then run the tests, tell me what changed, and show me the diff before committing.

Fix commands generated from the advisory's versions. No model wrote them.

In plain words

Brief pending: here are the facts and the fix. The explanation in plain words follows when it has been written and checked.

Evidence

No evidence that it is being used, or can be. It is listed because of what it affects.

Timeline

  1. First published here, as "For your digest".