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

Published Aug 16, 2026
·
Updated

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 Software

1 affected component
Scriban Scriban<=6.6.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Scriban to a version that resolves this vulnerability.

    Fixed in 7.0.0

Event History

Aug 16, 2026
CVE Published
via MITRE·01:14 PM
Data Sourced
via MITRE·01:14 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-74786?

The severity of CVE-2026-74786 is rated as medium with a CVSS score of 6.5.

2

How does CVE-2026-74786 impact Scriban?

CVE-2026-74786 allows for a denial-of-service condition by bypassing the LimitToString safety limit.

3

What versions of Scriban are affected by CVE-2026-74786?

Scriban versions before 7.0.0, specifically up to and including version 6.6.0, are affected by CVE-2026-74786.

4

How do I fix CVE-2026-74786?

To fix CVE-2026-74786, upgrade Scriban to version 7.0.0 or later.

5

What type of vulnerability is CVE-2026-74786?

CVE-2026-74786 is classified as a denial-of-service vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203