Resource exhaustion in Scriban
CVE-2026-74786
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS: 0.005 (38.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 39th percentile — 38.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.005 · change: +0.002
Affected products
- Scriban — versions 0, 7.0.0
Weakness classification (CWE)
References
- github.com/scriban/scriban/security/advisories/GHSA-m2p3-hwv5-xpqw (vendor-advisory)
- www.vulncheck.com/advisories/scriban-before-denial-of-service-via-unbounded-tem… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-74786?
- CVE-2026-74786 is a medium-severity vulnerability in Scriban, classified under Allocation of Resources Without Limits or Throttling. CVSS score: 6.5/10. Published 2026-08-16.
- How severe is CVE-2026-74786?
- Medium severity. CVSS v3 base score is 6.5 out of 10.