GHSA-c2g3-c4gc-w5wg: ReDoS in DotVVM routing
Impact This impacts users which use multiple unconstrained route parameters not separated by a /. For instance, the following code is vulnerable: Patches DotVVM versions 4.3.15, 4.2.11 and 5.0.0-preview09 apply a 1 second timeout to route regex operations. When it is triggered, DotVVM permanently switches to using the .NET non-backtracking regex engine for this route.
Published Jun 19, 2026
Affected packages
DotVVM
- Ecosystem
- NuGet
- Affected
- < 4.2.11
- Fixed in
- 4.2.11
- Check
dotnet list package --include-transitive
DotVVM
- Ecosystem
- NuGet
- Affected
- > 4.3.0-preview01-final, < 4.3.15
- Fixed in
- 4.3.15
- Check
dotnet list package --include-transitive
DotVVM
- Ecosystem
- NuGet
- Affected
- >= 5.0.0-preview01-final, < 5.0.0-preview09-final
- Fixed in
- 5.0.0-preview09-final
- Check
dotnet list package --include-transitive
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
This impacts users which use multiple unconstrained route parameters not separated by a /. For instance, the following code is vulnerable:
var route = new DotvvmRoute("edit/{a}-{b}-{c}/done", null, "testpage", null, null, configuration);
var adversarialInput = "edit/" + new string('-', 32000);
route.IsMatch(adversarialInput, out _);Patches
DotVVM versions 4.3.15, 4.2.11 and 5.0.0-preview09 apply a 1 second timeout to route regex operations. When it is triggered, DotVVM permanently switches to using the .NET non-backtracking regex engine for this route. If non-backtracking is not supported by target runtime (< .NET 8.0), DotVVM returns HTTP 503 when the 1 second timeout is reached.
Workarounds
Avoid multiple unconstrained route parameters in one section not separated by a /. See for documentation of route parameter constraints. Even with the patched version we recommend doing this both as security hardening and to avoid ambiguity.
For instance, when we change the route URL to "edit/{a:alpha}-{b:alpha}-{c}/done", the problem disappears. If all available constraints are too restrictive, we can still use {a:regex([^-]*)} to forbid the -, which is enough to remove the mabiguity
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
