-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed as not planned
Labels
Bugthing that needs fixingthing that needs fixingPriority 2secondary priority issuesecondary priority issueRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
In my project, when running npm audit
, one of the reported vulnerable packages is listed with the message “fix available via npm audit fix
”, but running npm audit fix
doesn’t lead to any updated packages and the exact same output as from the earlier run of npm audit
is logged.
This occurs on kleinfreund/vue-accessible-color-picker@35bec0e.
Which dependency from my package.json file is actually the vulnerable one I cannot tell with the new output of npm audit
in npm 7. This is what the output looks like:
css-what <5.0.1
Severity: high
Denial of Service - https://npmjs.com/advisories/1754
fix available via `npm audit fix`
node_modules/css-what
css-select <=3.1.2
Depends on vulnerable versions of css-what
node_modules/css-select
svgo 1.0.0 - 2.3.0
Depends on vulnerable versions of css-select
node_modules/svgo
postcss-svgo 4.0.0-nightly.2020.1.9 - 5.0.0-rc.2
Depends on vulnerable versions of svgo
node_modules/postcss-svgo
Expected Behavior
When seeing a message with the clear instruction “fix available via npm audit fix
”, I expect this to be truthful and npm audit fix
to always produce a changed package-lock.json file.
Steps To Reproduce
- Run
git clone https://github.com/kleinfreund/vue-accessible-color-picker.git
- Run
git checkout 35bec0e751abad872de79657053cb8de07321faa
to checkout the commit on the project’smain
branch at the time of writing this. - Run
npm install
- Run
npm audit
.Observe how currently this includes an entry with the message “fix available viaFor this particular advisory, this is no longer the case, unfortunately.npm audit fix
”. - Run
npm audit fix
Environment
- OS: Ubuntu 20.04
- Node: v14.17.1
- npm: 7.19.0
Trickfilm400, chase-moskal, johanneswuerbach, cloudlena, TrevorSundberg and 286 morehdsysdev, mdefariahaley and yazok8jpidelatorreLenonLopezrtucek, rejhgadellaa, kjkent, jamesrtyrrell, tom-oroshi and 7 more
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingPriority 2secondary priority issuesecondary priority issueRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release