What’s Vulnerable › Vulnerabilities
CVE-2026-74786: Scriban before 7.0.0 Denial of Service via Unbounded Template Output
- Severity: medium (CVSS 6.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-08-31
- Weakness: CWE-770
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.
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-m2p3-hwv5-xpqw
- https://www.vulncheck.com/advisories/scriban-before-denial-of-service-via-unbounded-template-output
- https://github.com/scriban/scriban/security/advisories/GHSA-m2p3-hwv5-xpqw
Get alerted when CVE-2026-74786 or the next vulnerability affects your stack