-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(codegen): escape regex literals in path segments
We use regex to extract labeled path values, and literal path segments can contain unescaped regex literals that can both blow up deserialization and present ReDoS risks. While it's unlikely we will see these paths in practice, we should still escape special regex characters.
- Loading branch information
1 parent
42bd6bd
commit 000909d
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters