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.
Published: 2026-08-16
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Scriban versions prior to 7.0.0 have a flaw in the object.to_json builtin that performs recursion without any depth limits or circular reference checks. An attacker can create a template containing a self‑referencing object or deep nested structures that will cause an uncontrolled recursion, resulting in a StackOverflowException that crashes the entire process. The weakness is CWE-674, an uncontrolled recursion flaw.

Affected Systems

Any .NET application that references Scriban before 7.0.0 is susceptible, regardless of platform. No specific sub‑versions are listed, so all releases prior to 7.0.0 should be treated as vulnerable.

Risk and Exploitability

The CVSS score of 8.7 classifies the vulnerability as high severity. EPSS is not available, and it is not listed in the CISA KEV catalog, suggesting that while the risk is theoretically high, the exploitation probability may be uncertain. The likely attack vector is internal template injection, meaning that an attacker with the ability to supply or alter templates can trigger the flaw. Once triggered the process terminates, causing a denial of service to any users of the affected application.

Generated by OpenCVE AI on August 16, 2026 at 15:07 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Scriban to version 7.0.0 or newer
  • If an upgrade is not immediately possible, restrict template input to trusted data only or sanitize incoming templates to remove self‑referencing objects
  • Consider implementing a custom wrapper that imposes a recursion depth limit on object serialization prior to calling Scriban's to_json

Generated by OpenCVE AI on August 16, 2026 at 15:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 16 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
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.
Title Scriban before 7.0.0 Uncontrolled Recursion via object.to_json
Weaknesses CWE-674
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-16T13:14:12.485Z

Reserved: 2026-08-16T12:56:02.577Z

Link: CVE-2026-74787

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-16T14:16:56.653

Modified: 2026-08-16T14:16:56.653

Link: CVE-2026-74787

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-16T15:15:04Z

Weaknesses