CVE-2026-74786 PUBLISHED

Scriban before 7.0.0 Denial of Service via Unbounded Template Output

Assigner: VulnCheck
Reserved: 16.08.2026 Published: 16.08.2026 Updated: 16.08.2026

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.

Metrics

CVSS 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
CVSS Score: 7.1

Product Status

Vendor scriban
Product scriban
Versions Default: unaffected
  • affected from 0 to 7.0.0 (excl.)
  • Version 7.0.0 is unaffected

Credits

  • offset reporter

References

Problem Types

  • Allocation of Resources Without Limits or Throttling CWE