Search code examples
javascriptnode.jssecuritynpmaudit

How to fix the vulnerabilities in npm if I cannot upgrade the major version of dependency?


I have a high risk vulnerability from npm audit --production. This is dependency of snowflake-sdk. But I checked snowflake github it has "requestretry": "^6.0.0" in the package.json which mean it doesn't support requestretry 7.0.0. Is there any other way to fix this vulnerability? What if I upgrade requestretry to 7.0.0?

enter image description here

I am very new to npm and javascript, any help is appreciated!


Solution

  • I think snowflake just fixed the issue:

    "requestretry": "^7.0.1",
    

    https://github.com/snowflakedb/snowflake-connector-nodejs/blob/master/package.json