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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| scriban | scriban | < 7.0.0 | 7.0.0 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| NuGet | Scriban | < 7.0.0 | 7.0.0 | GHSA-xcx6-vp38-8hr5 |
| NuGet | Scriban.Signed | < 7.0.0 | 7.0.0 | GHSA-xcx6-vp38-8hr5 |
References
- GitHub Security Advisory (GHSA-xcx6-vp38-8hr5) vendor-advisory
- VulnCheck Advisory: Scriban before 7.0.0 Uncontrolled Recursion via object.to_json third-party-advisory