CVE-2026-74787

Scriban before 7.0.0 Uncontrolled Recursion via object.to_json

Published Aug 16, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Scriban
Scriban scriban
Vendors & Products Scriban
Scriban scriban
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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 18, 2026, 2:07 PM
Reserved
Aug 16, 2026, 12:56 PM
Status
Deferred
Published
Aug 16, 2026, 2:16 PM
Modified
Sep 8, 2026, 8:32 PM