Scriban before 7.0.0 Uncontrolled Recursion via object.to_json
scriban
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Scriban NuGet |
|
|
| Scriban.Signed NuGet |
|
|
Original description
Scriban before 7.0.0 contains an uncontrolled recursion vulnerability in the object.to_json builtin function that lacks depth limits and circular reference detection. Attackers can craft templates with self-referencing objects to trigger unbounded recursion, causing a StackOverflowException that fatally terminates the hosting .NET process.