-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: [#4545] Please upgrade zod package - botbuilder-dialogs #385
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found this https://github.com/colinhacks/zod/blob/master/MIGRATION.md to compare the changes, just leaving it here for others.
@@ -33,7 +33,7 @@ | |||
"botbuilder-dialogs-adaptive-runtime": "4.1.6", | |||
"botbuilder-dialogs-adaptive-runtime-core": "4.1.6", | |||
"mime": "^2.5.2", | |||
"zod": "~1.11.17" | |||
"zod": "^3.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the latest ^3.22.4
https://www.npmjs.com/package/zod?activeTab=versions, also in other packages as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remember to update it in the description as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apply the changes Joel mentioned. The rest, LGTM.
Pull Request Test Coverage Report for Build 6799578840
💛 - Coveralls |
/promoted 4563 |
#minor
Description
This PR migrates the use of zod 1.11.17 to ^3.0.0 to avoid ReDoS vulnerability.
Specific Changes
Testing
The following image shows some bot samples working after the update.