Vulnerability Description
Scriban before 7.0.0 (affected versions <= 6.6.0) contains a denial-of-service vulnerability in which the LimitToString safety limit (default 1MB) can be bypassed because ObjectToString resets the per-call length counter (_currentToStringLength) on every top-level call and StringBuilderOutput enforces no cumulative output-size limit. An attacker who can supply a template can render a near-limit string repeatedly in a loop, allocating approximately 1GB of memory and causing an out-of-memory condition that crashes the host application.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/scriban/scriban/security/advisories/GHSA-m2p3-hwv5-xpqw
- https://www.vulncheck.com/advisories/scriban-before-denial-of-service-via-unboun
- https://github.com/scriban/scriban/security/advisories/GHSA-m2p3-hwv5-xpqw
FAQ
What is CVE-2026-74786?
CVE-2026-74786 is a vulnerability with a CVSS score of 6.5 (MEDIUM). Scriban before 7.0.0 (affected versions <= 6.6.0) contains a denial-of-service vulnerability in which the LimitToString safety limit (default 1MB) can be bypassed because ObjectToString resets the per...
How severe is CVE-2026-74786?
CVE-2026-74786 has been rated MEDIUM with a CVSS base score of 6.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-74786?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.