Minor security and code fixes #305
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of change
Description
What does this PR do?
yarn auditthere are currently 116 vulnerabilities, this PR mostly tries to remediate some of the critical and high vulnerabilities by:axiosto0.21.4to avoid the ReDoS attack (High Vulnerability) - https://security.snyk.io/vuln/SNYK-JS-AXIOS-1579269minimistto1.2.6to avoid Prototype pollution (yarn auditseems to think it's a critical vulnerability while synk says it's a low severity vulnerability ) - https://snyk.io/test/npm/minimist/1.2.5cross-fetchto3.1.5to upgrade node-fetch to2.6.7to avoid DoS(Denial of Service) and Information exposure (High vulnerability) - https://snyk.io/vuln/npm:node-fetchjsprimto1.4.2to upgradejson-schemato0.4.0to avoid Prototype pollution (Critical vulnerability) - https://snyk.io/vuln/npm:json-schemaupdateHistoryState()method inhistory.jsSigned-off-by: Kartikey Mishra [email protected]