Skip to content
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

got dependency need to be update to 11.8.5 #69

Closed
deejaybill opened this issue Jun 27, 2022 · 1 comment
Closed

got dependency need to be update to 11.8.5 #69

deejaybill opened this issue Jun 27, 2022 · 1 comment

Comments

@deejaybill
Copy link

A fix for version 6.5.0 should be done due to the moderate severity vulnerability alert shown via the npm audit command caused by got dependency. The adoption of the ESM-only package is quite slow.

Steps

npm i package-json@6.5.0
npm audit

npm audit report

got <11.8.5
Severity: moderate
Got allows a redirect to a UNIX socket - GHSA-pfrx-2q88-qq97
fix available via npm audit fix --force
Will install package-json@8.1.0, which is a breaking change
node_modules/got
package-json <=6.5.0
Depends on vulnerable versions of got
node_modules/package-json

@sindresorhus
Copy link
Owner

Got v11 requires Node.js 10, while package-json@6.5.0 targets Node.js 8, so that will not work.

There are ways to import the latest package-json from CommonJS: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

@sindresorhus sindresorhus closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants