I have a node-module called node-fetch which is producing a Denial of Service
security vulnerability. The only way to fix this is to update it to version 2.6.1
. When I run npm ls node-fetch
I can see that it's a dependency of swagger-ui
.
`-- [email protected]
+-- [email protected]
| `-- [email protected]
| `-- [email protected]
| `-- [email protected] deduped
`-- [email protected]
`-- [email protected]
`-- [email protected]
I tried npm install swagger-ui@latest
to see if that would fix the issue, but it did not. I also tried editing the version in package-lock.json
but it reverts when running npm install
I am very new to fixing security vulnerabilities so I don't know exactly what to do here.
Anything helps! Cheers