# CVE-2026-74786: Scriban before 7.0.0 Denial of Service via Unbounded Template Output

- Severity: High 7.1 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-24T22:15:43.000Z
- Modified: 2026-08-31T20:30:14.457Z
- Also known as: GHSA-m2p3-hwv5-xpqw
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- scriban scriban: before 7.0.0 (not affected: 7.0.0)
- Scriban (NuGet): before 7.0.0
- Scriban.Signed (NuGet): before 7.0.0

## Every score

- VulnCheck: CVSS:4.0 7.1 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/scriban/scriban/security/advisories/GHSA-m2p3-hwv5-xpqw> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/scriban-before-denial-of-service-via-unbounded-template-output> (third-party-advisory)
- <https://github.com/scriban/scriban> (package)

## Sources

- CVE List: [CVE-2026-74786](https://www.cve.org/CVERecord?id=CVE-2026-74786), CVE Terms of Use, modified 2026-08-17
- GitHub Advisory Database: [GHSA-m2p3-hwv5-xpqw](https://github.com/advisories/GHSA-m2p3-hwv5-xpqw), CC-BY-4.0, modified 2026-08-17
- NVD: [CVE-2026-74786](https://nvd.nist.gov/vuln/detail/CVE-2026-74786), Public domain, modified 2026-08-31

---

Page: https://cve.day/CVE-2026-74786 · Whole record: https://cve.day/CVE-2026-74786.json · Rebuilt by cve.day 2026-11-25T22:59:33.305Z
