What’s Vulnerable › Vulnerabilities
CVE-2026-74787: Scriban before 7.0.0 Uncontrolled Recursion via object.to_json
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-08-16 · updated 2026-09-08
- Weakness: CWE-674
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.
Affected products
- scriban: before 7.0.0 — fixed in 7.0.0
How to fix
Upgrade to a fixed version: scriban 7.0.0. Check the vendor advisory for mitigations.
References
- https://github.com/scriban/scriban/security/advisories/GHSA-xcx6-vp38-8hr5
- https://www.vulncheck.com/advisories/scriban-before-uncontrolled-recursion-via-object-to-json
- https://github.com/scriban/scriban/security/advisories/GHSA-xcx6-vp38-8hr5
Get alerted when CVE-2026-74787 or the next vulnerability affects your stack