-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@docusaurus/core@2.2.0
depends on a deep dependency got@9.6.0
which is a vulnerable version
#8277
Comments
Thanks for reporting After taking a look, it's unlikely to cause any security trouble in Docusaurus, but we'll upgrade to v6.0 someday (ESM) See also We could as well do like nodemon and start using a simpler/lighter lib, see remy/nodemon#2033 |
Just an update for those who are a little bothered by the vulnerability alert like me. You can overwrite in your package.json the dependencies that are vulnerable, for example: "overrides":{
"trim": "^0.0.3",
"got": "^11.8.5"
} |
With yarn, it's |
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com> Fixes #8277
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
@docusaurus/core@2.2.0
depends on a deep dependencygot@9.6.0
which is a vulnerable versionDependency Map:
Observations:
got@11.8.5
and above are the bug free onespackage-json@8.0.0
and above contains the abovegot
package versionlatest-version@7.0.0
and above contains the abovepackage-json
package versionupdate-notifier@6.0.1
and above contains the abovelatest-version
package versionBut,
@docusaurus/core@2.2.0
contains only theupdate-notifier@5.1.0
which has vulnerablegot
.Useful Links:
https://www.npmjs.com/package/got
https://nvd.nist.gov/vuln/detail/CVE-2022-33987
Reproducible demo
No response
Steps to reproduce
Run
npm ls got
You will get
Here,
got@9.6.0
is a vulnerable version.Expected behavior
@docusaurus/core should use at least
update-notifier@6.0.1
which is having non vulnerablegot
Actual behavior
@docusaurus/core is using
update-notifier@5.1.0
which is having vulnerable version ofgot@9.6.0
Your environment
Self-service
The text was updated successfully, but these errors were encountered: