# CVE-2026-74794: Scriban infinite recursion in object rendering

Source: https://junglewise.ai/threats/cve-2026-74794-scriban-infinite-recursion-in-object-rendering  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-16. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-74794 · Severity: high · CVSS 7.5 · Published 2026-08-16

Scriban is a template rendering engine used to dynamically generate content from data in .NET applications. A flaw in its object recursion handling allows attackers to supply circular reference objects that cause the rendering process to enter infinite recursion, exhausting memory and crashing the entire application process with no recovery possible.

Technologies: [scriban (NuGet)](https://junglewise.ai/threats/technologies/scriban), [Scriban.Signed (NuGet)](https://junglewise.ai/threats/technologies/scriban-signed). Vendors: [NuGet](https://junglewise.ai/threats/vendors/nuget).

## Quick answers

**Is CVE-2026-74794 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-74794 being exploited in the wild.

**How severe is CVE-2026-74794?** High severity, with a CVSS score of 7.5, published 16 August 2026.

**Which products and versions are affected?** scriban (NuGet) ECOSYSTEM:introduced=0,fixed=6.6.0; Scriban.Signed (NuGet) ECOSYSTEM:introduced=0,fixed=6.6.0.

**Is there a fix for CVE-2026-74794?** Yes. scriban (NuGet): upgrade to 6.6.0 or later; Scriban.Signed (NuGet): upgrade to 6.6.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-74794 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-74794?** Check whether you run scriban (NuGet) or Scriban.Signed (NuGet) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- scriban (NuGet): upgrade to 6.6.0 or later

  ```sh
  dotnet add package scriban --version 6.6.0
  ```

- Scriban.Signed (NuGet): upgrade to 6.6.0 or later

  ```sh
  dotnet add package Scriban.Signed --version 6.6.0
  ```


## Technical details

Scriban contains an uncontrolled recursion vulnerability (CWE-674) in its object rendering pipeline. When the TemplateContext.ObjectRecursionLimit property defaults to 0 (unlimited), the renderer fails to stop traversing circular object references, exhausting the stack and triggering an uncatchable StackOverflowException. An attacker can exploit this by providing circular reference objects (e.g., objects with self-referencing properties) directly to the template context via the data structure passed to Template.Render(). This is particularly dangerous in web applications that map user-supplied JSON or pass ORM objects with circular navigation properties into templates. The vulnerability was fixed in version 6.6.0 by setting ObjectRecursionLimit to a safe default value of 20.

## Affected products

- Scriban Scriban before 6.6.0

## Identifiers

- CVE-2026-74794
- GHSA-grr9-747v-xvcp

## Timeline

- 2026-03-19: disclosed
- 2026-06-16: patched
- 2026-08-16: advisory

## References

- [https://github.com/scriban/scriban/security/advisories/GHSA-grr9-747v-xvcp](https://github.com/scriban/scriban/security/advisories/GHSA-grr9-747v-xvcp)
- [https://www.vulncheck.com/advisories/scriban-before-denial-of-service-via-infinite-recursion](https://www.vulncheck.com/advisories/scriban-before-denial-of-service-via-infinite-recursion)

## Related threats

- [Scriban uncontrolled recursion stack overflow in parser](https://junglewise.ai/threats/cve-2026-74795-scriban-uncontrolled-recursion-stack-overflow-in-parser)
- [Scriban stack overflow in nested array initializer parsing](https://junglewise.ai/threats/cve-2026-74792-scriban-stack-overflow-in-nested-array-initializer-parsing)
- [Scriban authorization bypass via stale include cache](https://junglewise.ai/threats/cve-2026-74791-scriban-authorization-bypass-via-stale-include-cache)
- [Scriban TypedObjectAccessor cache MemberFilter bypass](https://junglewise.ai/threats/cve-2026-74790-scriban-typedobjectaccessor-cache-memberfilter-bypass)
- [Scriban LoopLimit denial-of-service bypass in built-in operations](https://junglewise.ai/threats/cve-2026-74789-scriban-looplimit-denial-of-service-bypass-in-built-in-operations)
