Packages / ssri / Security

HighVulnerabilityGHSA-vx3p-948g-6vhqCVE-2021-27290Published 19 Mar 2021

Regular Expression Denial of Service (ReDoS)

Your version

Affected releases · ssri

  • 8.x8.0.0Fixed in 8.0.1
  • 7.x7.0.0 – 7.1.0Fixed in 7.1.1
  • 6.x6.0.0 – 6.0.1Fixed in 6.0.2
  • 5.x5.2.2 – 5.3.0No fix on this line yet

On 8.x, the newest line:

npm install ssri@8.0.1
Every release on a timeline
14.x
  1. Not affected

    14.0.0

    1 release, latest

8.x
  1. Affected

    8.0.0

    1 release

  2. Fixed

    8.0.1

    1 release

7.x
  1. Affected

    7.0.0 – 7.1.0

    3 releases

  2. Fixed

    7.1.1

    1 release

6.x
  1. Affected

    6.0.0 – 6.0.1

    2 releases

  2. Fixed

    6.0.2

    1 release

5.x
  1. Not affected

    5.0.0 – 5.2.1

    3 releases

  2. Affected

    5.2.2 – 5.3.0

    4 releases

44 stable releases of ssri, oldest to newest, one row per major.

What happens

npm ssri 5.2.2-6.0.1 and 7.0.0-8.0.0, processes SRIs using a regular expression which is vulnerable to a denial of service. Malicious SRIs could take an extremely long time to process, leading to denial of service. This issue only affects consumers using the strict option.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.