CVE-2026-74787
Received Received - Intake

Scriban Template Engine Uncontrolled Recursion Vulnerability

Vulnerability report for CVE-2026-74787, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-16

Last updated on: 2026-08-16

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-16
Last Modified
2026-08-16
Generated
2026-08-16
AI Q&A
2026-08-16
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
scriban scriban to 7.0.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-674 The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-74787 is an uncontrolled recursion vulnerability in Scriban versions before 7.0.0. The object.to_json function lacks depth limits and circular reference detection, allowing self-referencing objects to trigger infinite recursion. This causes a StackOverflowException that crashes the hosting .NET process.

Detection Guidance

To detect this vulnerability, inspect Scriban versions in use. Check for crashes in .NET processes hosting Scriban templates. Monitor for StackOverflowException errors in logs. Review templates using object.to_json for self-referencing or deeply nested objects.

Impact Analysis

This vulnerability can lead to denial of service by crashing applications using affected Scriban versions. Attackers can exploit it remotely without authentication, causing process termination and potential service disruption.

Compliance Impact

This vulnerability primarily causes denial of service by crashing .NET processes via StackOverflowException, which does not directly impact data confidentiality or integrity. However, process crashes could disrupt systems handling sensitive data, potentially violating availability requirements in GDPR (Article 32) or HIPAA (45 CFR Β§ 164.308(a)(7)). No evidence suggests direct data exposure or compliance violations beyond service disruption.

Mitigation Strategies

Upgrade Scriban to version 7.0.0 or later. Implement input validation to prevent self-referencing objects in templates. Add depth limits and circular reference checks if custom code uses object.to_json. Monitor for crashes and apply patches promptly.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-74787. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart