Skip to content

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
@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 <[email protected]>
# 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.

4 participants