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

[BUG] npm audit recommends reverting to a different version that contains even more vulnearbilities #6079

Open
2 tasks done
PCOffline opened this issue Jan 24, 2023 · 1 comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 9.x work is associated with a specific npm 9 release

Comments

@PCOffline
Copy link

PCOffline commented Jan 24, 2023

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

I am using [email protected], which is dependent on a vulnerable version of jsonwebtoken.
npm audit offers to revert to [email protected] if I use the --force flag.
npm audit recommends downgrading to twilio@2.5.2
[email protected] however, contains 11 vulnerabilities which npm fails to warn about before downgrading.
twilio@2.5.2 contains 11 vulnerabiltiies

Expected Behavior

I would expect the behaviour to prefer fewer vulnerabilities (especially when 2.5.2 has 3 critical and 3 high vulnerabilities, while 3.84.1 has 1 high and 1 moderate), or at the very least warn of existing vulnerabilities in the offered version.

Steps To Reproduce

  1. npm init
  2. npm i [email protected]
  3. npm audit
  4. npm audit fix --force

Environment

  • npm: 9.3.1
  • Node.js: 16.19.0
  • OS Name: Windows 10 Pro 10.0.19044
  • System Model Name: HP EliteDesk 800 G4 DM 65W
  • npm config:
; "builtin" config from C:\Program Files\nodejs\node_modules\npm\npmrc

prefix = "C:\\Users\\Ldar\\AppData\\Roaming\\npm"

; node bin location = C:\Program Files\nodejs\node.exe
; node version = v16.19.0
; npm local prefix = C:\Users\Ldar\Documents\Code\sample-project
; npm version = 9.3.1
; cwd = C:\Users\Ldar\Documents\Code\sample-project
; HOME = C:\Users\Ldar
; Run `npm config ls -l` to show all defaults.
@PCOffline PCOffline added Bug thing that needs fixing Needs Triage needs review for next steps Release 9.x work is associated with a specific npm 9 release labels Jan 24, 2023
@PCOffline
Copy link
Author

Bumping this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 9.x work is associated with a specific npm 9 release
Projects
None yet
Development

No branches or pull requests

1 participant