Skip to content
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] Zod package - botbuilder #4561

Merged
merged 6 commits into from
Nov 9, 2023

Conversation

sw-joelmut
Copy link
Collaborator

@sw-joelmut sw-joelmut commented Nov 8, 2023

Addresses #4545
#minor

Description

This PR migrates the use of zod 1.11.17 to ^3.22.4 to avoid ReDoS vulnerability.

Specific Changes

  • Updated zod version to ^3.22.4 in
    • botbuilder
    • botframework-schema
    • botframework-connector
    • botbuilder-tests-utils
  • Replaced use of check method with safeParse.

Testing

The following image shows some bot samples working after the update.
image
image

@sw-joelmut sw-joelmut requested a review from a team as a code owner November 8, 2023 14:31
@tracyboehrer tracyboehrer merged commit ecb77e1 into main Nov 9, 2023
13 of 17 checks passed
@tracyboehrer tracyboehrer deleted the southworks/update/zod-botbuilder branch November 9, 2023 12:27
@tracyboehrer tracyboehrer changed the title fix: [#4545] Please upgrade zod package - botbuilder fix: [#4545] Zod package - botbuilder Nov 9, 2023
tracyboehrer pushed a commit that referenced this pull request Nov 13, 2023
* update zod in botbuilder

* change ts support in test consumer

* fix ts config

* simplify use of safeParse

* fix lint

---------

Co-authored-by: JhontSouth <jhonatan.sandoval@southworks.com>
# Conflicts:
#	libraries/botframework-schema/package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants