Commit 0cd795d
authored
fix(security): ensure wiki sidebar generation isn't vulnerable to regex backtracking (#92)
The regex pattern to match ## or ### was initially vulnerable to
potential DOS backtracking via the ".+" pattern. This fix prevents that
by using a different character group matching pattern.1 parent 57fdadb commit 0cd795d
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
297 | 300 | | |
298 | 301 | | |
299 | 302 | | |
| |||
0 commit comments