CVE-2026-74787: Scriban before 7.0.0 Uncontrolled Recursion via object.to_json
Scriban before 7.0.0 contains an uncontrolled recursion vulnerability in the object.tojson 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 Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-74787?
CVE-2026-74787 has a severity rating of high, with a score of 7.5.
How do I fix CVE-2026-74787?
To address CVE-2026-74787, upgrade to Scriban version 7.0.0 or later where the vulnerability is resolved.
What type of vulnerability is CVE-2026-74787?
CVE-2026-74787 is an uncontrolled recursion vulnerability in the object.to_json function.
What impact does CVE-2026-74787 have?
CVE-2026-74787 can lead to a StackOverflowException due to unbounded recursion triggered by specially crafted templates.
Who is affected by CVE-2026-74787?
Any user of Scriban versions prior to 7.0.0 is potentially affected by CVE-2026-74787.