question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CVE-2021-27290 due to using old version of `ssri`

See original GitHub issue

Bug report

What is the current behavior? CVE-2021-27290

ssri 5.2.2-8.0.0, fixed in 8.0.1, 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.

The fix is to bump ssri to 8.0.1.

The dependency path to ssri is webpack > terser-webpack-plugin > cacache > ssri

I’ve reported this issue in terser-webpack-plugin at https://github.com/webpack-contrib/terser-webpack-plugin/issues/388

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior? There shouldn’t be any CVE’s found when evaluating Webpack 😃

Other relevant information: webpack version: 4.46.0 Node.js version: all Operating System: all

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

12reactions
vparames86commented, Mar 29, 2021

react-script still uses webpack 4. “webpack”: “4.44.2”. Could someone please release a patch as it is affecting multiple projects using react-script.

2reactions
mikaelhalencommented, Apr 15, 2021

Not sure when this will be resolved but for all of you who are struggling with vulnerability requirements you can modify the package-lock.json and adding the specific version of the ssri dependency instead of the standard one required by react scripts. For more info see this stackoverflow issue: https://stackoverflow.com/questions/15806152/how-do-i-override-nested-npm-dependency-versions

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] CVE-2021-27290 due to using old version of ssri #388
CVE-2021-27290 ssri 5.2.2-8.0.0, fixed in 8.0.1, processes SRIs using a regular expression which is vulnerable to a denial of service.
Read more >
CVE-2021-27290 Detail - NVD
Description. ssri 5.2.2-8.0.0, fixed in 8.0.1, processes SRIs using a regular expression which is vulnerable to a denial of service.
Read more >
CVE-2021-27290 - Red Hat Customer Portal
A flaw was found in ssri package. A malicious string provided by an attacker may lead to Regular Expression Denial of Service (ReDoS)....
Read more >
Regular Expression Denial of Service (ReDoS) in ssri | Snyk
High severity (7.5) Regular Expression Denial of Service (ReDoS) in ssri | CVE-2021-27290.
Read more >
Common SSRI side-effects in older adults associated ... - NCBI
(4) The assessment of SSRI side-effects is difficult due to individual ... modeling with the NONMEM computer program (Version 5, level 1.1; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found