Commit c3ac8c3
committed
fix: add ReDoS protection for excludedNamespaces regex validation
- Limit regex length to 512 characters to mitigate catastrophic
backtracking (ReDoS) attacks via overly complex patterns
- Improve error message to include the actual regexp compilation error
for better debugging1 parent 00b0ae5 commit c3ac8c3
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
73 | 78 | | |
74 | 79 | | |
75 | | - | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
0 commit comments