CVE-2026-74787
8.7
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
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 unbounded recursion, causing a StackOverflowException that fatally terminates the hosting .NET process.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| scriban | scriban | 0 < 7.0.0 | affected |
| scriban | scriban | 7.0.0 | unaffected |
Weaknesses
- CWE-674: Uncontrolled Recursion
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
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.