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.

Vulnerability in loader-utils version

See original GitHub issue

Bug report

Vulnerability of in dependency tree: minimist, dependency of loader-utils

Describe the bug

Nextjs has a dependency on loader-utils, currently using version 1.2.3. In this version of loader-utils, there is a dependency on json5, which had a dependency on minimist in a version that has a vulnarability. Loader-utils package fixed that dependency here: https://github.com/webpack/loader-utils/commit/c78786d5b540dea5e50d741557c72f2523976ef3#diff-b9cfc7f2cdf78a7f4b91a753d10865a2

Loader-utils has updated their dependency to minimist in 2.x. Hope it will be possible to upgrade to the new version?

The vulnarability is described here: https://nvd.nist.gov/vuln/detail/CVE-2020-7598#vulnCurrentDescriptionTitle https://snyk.io/vuln/SNYK-JS-MINIMIST-559764

To Reproduce

First of all the issue was found using Anchore cli After that the cause of this particular dependency was found by:

  1. using nextjs 9.3.0
  2. yarn why minimist

result:

   - Hoisted from "next#loader-utils#json5#minimist"

System information

  • OS: docker container node:lts-alpine
  • Version of Next.js: 9.3.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
timneutkenscommented, Mar 26, 2020

Those are different. Both have been updated, check next@canary.

See #11149

0reactions
balazsorban44commented, Jan 30, 2022

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

loader-utils - Snyk Vulnerability Database
version published direct vulnerabilities 1.4.2 10 Nov, 2022 0. C. 0. H. 0. M. 0. L 2.0.4 10 Nov, 2022 0. C. 0. H. 0....
Read more >
Security Vulnerabilities issue #216 - webpack/loader-utils
Depends on vulnerable versions of loader-utils node_modules/@angular-devkit/build-angular. 2 high severity vulnerabilities.
Read more >
Regular Expression Denial Of Service (ReDoS) Vulnerability ...
loader-utils is vulnerable to regular expression denial of service. ... A vulnerability in a direct dependency can be fixed by updating the version...
Read more >
loader-utils is vulnerable to Regular Expression Denial of ...
In your package-lock.json file change loader-utils version to 3.2.1. This issue has been patched in versions 1.4.2, 2.0.4 and 3.2.1, ...
Read more >
Recent Vulnerability in loader-utils (CVE-2022-37603) - Vulert
The most accurate and complete database of loader-utils Vulnerabilities. ... How to fix. To properly fix this issue update loader-utils to version 1.4.2 ......
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