request and request-promise-native vulnerability
rygramer opened this issue · 2 comments
These two packages are no longer maintained, and Snyk has reported an issue with the request
package related to Server-side Request Forgery.
jsforce went through a similar analysis and remediation here: jsforce/jsforce#1312
I wish I could help, but this is out of my wheelhouse. I do think this is an important fix to push through.
sfpowerscripts/packages/sfprofiles/package.json
Lines 74 to 75 in 185b6fb
@azlam-abdulsalam I was looking into this a bit more. Looks like the only usage of request
/ request-promise-native
in the entire sfp
library is in this method:
sfpowerscripts/packages/sfprofiles/src/utils/scratchOrgUtils.ts
Lines 32 to 47 in 5ab1900
It doesn't look like this method is referenced anywhere in the codebase. (
PoolCreateImpl
is using ScratchOrgLimitsFetcher
, the latter not having a dependency to either request
/ request-promist native
, nor sfprofiles
):Perhaps the vulnerable method is an artifact of the past, and can simply be removed (which would also eliminate the dependency on
request
and request-promise-native
)?? 🤞Wohooo! Thanks @rygramer Checking this one