fix: Remove CVE-2021-3807 vulnerability #4705
Merged
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.
Addresses # 4684
#minor
Description
This PR removes the vulnerable versions of ansi-regex to avoid the CVE-2021-3807 vulnerability.
Specific Changes
Testing
The following images show the ansi-regex versions installed after the update.
![image](https://private-user-images.githubusercontent.com/122501764/344221227-c1b78eb4-7755-442c-99fa-091bb855479c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNzk0MTksIm5iZiI6MTczOTI3OTExOSwicGF0aCI6Ii8xMjI1MDE3NjQvMzQ0MjIxMjI3LWMxYjc4ZWI0LTc3NTUtNDQyYy05OWZhLTA5MWJiODU1NDc5Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQxMzA1MTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03NTAxNDBlNjEwYWIyOWNiMDc3ZGQ2OWY1OTE5MmYzYWU3NTYwMmE1MDA4ODg1MmZkYzU3M2UwMGF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