# CVE-2026-74792: Scriban stack overflow in nested array initializer parsing

Source: https://junglewise.ai/threats/cve-2026-74792-scriban-stack-overflow-in-nested-array-initializer-parsing  
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-74792 · Severity: high · CVSS 7.5 · Published 2026-08-16

Scriban is a templating engine used to dynamically generate text and configuration files. A flaw in how it parses deeply nested array structures allows an attacker to crash any application using it, even when parsing untrusted templates. The crash is instantaneous and unstoppable, resulting in immediate service outage with no opportunity for error recovery.

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-74792 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-74792 being exploited in the wild.

**How severe is CVE-2026-74792?** 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=7.0.0; Scriban.Signed (NuGet) ECOSYSTEM:introduced=0,fixed=7.0.0.

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

**How is CVE-2026-74792 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-74792?** 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 7.0.0 or later

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

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

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


## Technical details

A stack overflow vulnerability exists in Scriban's template parser when handling deeply nested array initializers (e.g., [[[[...]])). The recursion path ParseArrayInitializer → ParseExpression → ParseArrayInitializer is not bounded by the ExpressionDepthLimit counter that was added in a previous fix. An attacker supplying malicious template input to Template.Parse() can trigger an uncatchable StackOverflowException that terminates the process immediately, even when the default 250-level ExpressionDepthLimit is enabled. No authentication or user interaction is required; the vulnerability is reachable over the network if the application accepts external template input. The fix is available in Scriban 7.0.0 and later.

## Affected products

- Scriban Scriban <= 6.6.0

## Identifiers

- CVE-2026-74792
- GHSA-p6q4-fgr8-vx4p

## Timeline

- 2026-03-22: disclosed: GitHub Security Advisory GHSA-p6q4-fgr8-vx4p published
- 2026: patched: Fix released in Scriban 7.0.0
- 2026-08-16: advisory: CVE-2026-74792 published

## References

- [https://github.com/scriban/scriban/security/advisories/GHSA-p6q4-fgr8-vx4p](https://github.com/scriban/scriban/security/advisories/GHSA-p6q4-fgr8-vx4p)
- [https://www.vulncheck.com/advisories/scriban-before-stack-overflow-via-nested-array-initializers](https://www.vulncheck.com/advisories/scriban-before-stack-overflow-via-nested-array-initializers)

## Related threats

- [Scriban uncontrolled recursion stack overflow in parser](https://junglewise.ai/threats/cve-2026-74795-scriban-uncontrolled-recursion-stack-overflow-in-parser)
- [Scriban infinite recursion in object rendering](https://junglewise.ai/threats/cve-2026-74794-scriban-infinite-recursion-in-object-rendering)
- [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)
