Uncontrolled Recursion in Scriban's object.to_json Function
CVE-2026-74787

8.7HIGH

Key Information:

Vendor

Scriban

Status
Vendor
CVE Published:
16 August 2026

What is CVE-2026-74787?

Scriban, a popular templating engine for .NET, is susceptible to an uncontrolled recursion vulnerability via its object.to_json built-in function. This vulnerability arises from the lack of depth limits and insufficient detection of circular references. Attackers can exploit this flaw by crafting malicious templates with self-referencing objects, leading to unbounded recursion. Such exploitation can result in a StackOverflowException, which ultimately terminates the hosting .NET process, causing potential downtime and disrupting services.

Affected Version(s)

scriban 0 < 7.0.0

scriban 7.0.0

References

CVSS V4

Score:
8.7
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

offset
.