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.
`-- swagger-ui@3.23.11
+-- react@15.6.2
| `-- fbjs@0.8.17
| `-- isomorphic-fetch@2.2.1
| `-- node-fetch@1.7.3 deduped
`-- swagger-client@3.9.4
`-- cross-fetch@0.0.8
`-- node-fetch@1.7.3
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