CVE-2026-74795: Scriban before 6.6.0 Denial of Service via Uncontrolled Recursion

Published Aug 16, 2026
·
Updated

Scriban before 6.6.0 contains an uncontrolled recursion vulnerability in its recursive-descent parser. The parser does not enforce a default expression depth limit (the ExpressionDepthLimit property in ParserOptions defaults to null/disabled), so an attacker who controls template input can supply a deeply nested template (e.g., thousands of nested parentheses or blocks) that exhausts thread stack space and raises a StackOverflowException. Because a StackOverflowException cannot be caught in .NET, this causes immediate, unrecoverable termination of the hosting process, resulting in a denial of service. Applications that process untrusted or user-supplied templates can be exploited remotely without authentication.

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 6.6.0
  2. Configuration

    Enable/raise ExpressionDepthLimit in ParserOptions (it defaults to null/disabled) to enforce a maximum expression depth and prevent uncontrolled recursion leading to StackOverflowException.

    Scriban ParserOptions ExpressionDepthLimit = set to a finite (non-null) value

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-74795?

CVE-2026-74795 has a high severity rating of 7.5.

2

How do I fix CVE-2026-74795?

To fix CVE-2026-74795, upgrade to Scriban version 6.6.0 or later.

3

What is the impact of CVE-2026-74795?

CVE-2026-74795 can lead to a denial of service due to uncontrolled recursion in the parser.

4

What versions are affected by CVE-2026-74795?

CVE-2026-74795 affects all versions of Scriban prior to 6.6.0.

5

Who can exploit CVE-2026-74795?

An attacker controlling the template input can exploit CVE-2026-74795.

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