What’s Vulnerable › Vulnerabilities

CVE-2026-74787: Scriban before 7.0.0 Uncontrolled Recursion via object.to_json

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

How to fix

Upgrade to a fixed version: scriban 7.0.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-74787 or the next vulnerability affects your stack