---
id: CVE-2026-74787
title: >-
  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
summary: >-
  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…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-674
published: '2026-08-16'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T20:32:39.347'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-74787'
references:
  - url: 'https://github.com/scriban/scriban/security/advisories/GHSA-xcx6-vp38-8hr5'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/scriban-before-uncontrolled-recursion-via-object-to-json
    label: disclosure@vulncheck.com
  - url: 'https://github.com/scriban/scriban/security/advisories/GHSA-xcx6-vp38-8hr5'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.00337
epssPercentile: 0.27178
ingestedAt: '2026-09-08T21:11:12.278Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
