Scriban before 6.6.0 Denial of Service via Uncontrolled Recursion
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-74795
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 02:23 UTC · Revision 1
Source evidence
Scriban before 6.6.0 Denial of Service via Uncontrolled Recursion
core-osv · Original sourcePublished 16 Aug 2026, 13:14 UTC
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.
osv:CVE-2026-74795
Complete source record
{
"id": "b0cffec4286bcc5dcb4d909d008cb89ef943fa0d6f4f815081a03fe4c015db00",
"url": "https://osv.dev/vulnerability/CVE-2026-74795",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Scriban before 6.6.0 Denial of Service via Uncontrolled Recursion",
"summary": "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.",
"evidence": "osv:CVE-2026-74795",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-74795",
"aliases": [
"CVE-2026-74795",
"GHSA-wgh7-7m3c-fx25"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/scriban/scriban",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "b5ac4bf30459fdc76964e3f751e16f7e96079ea7"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "6.6.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "0"
},
{
"fixed": "6.6.0"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"6.5.8",
"6.5.7",
"6.5.6",
"6.5.5",
"6.5.4",
"6.5.3",
"6.5.2",
"6.5.1",
"6.5.0",
"6.4.0",
"6.3.0",
"6.2.1",
"6.2.0",
"6.1.0",
"6.0.0",
"5.12.1",
"5.12.0",
"5.11.0",
"5.10.0",
"5.9.1",
"5.9.0",
"5.8.0",
"5.7.0",
"5.6.0",
"5.5.2",
"5.5.1",
"5.5.0",
"5.4.6",
"5.4.5",
"5.4.4",
"5.4.3",
"5.4.2",
"5.4.1",
"5.4.0",
"5.3.0",
"5.2.0",
"5.1.0",
"5.0.0",
"4.1.0",
"4.0.2",
"4.0.1",
"4.0.0",
"3.9.0",
"3.8.2",
"3.8.1",
"3.8.0",
"3.7.0",
"3.4.1",
"3.6.0",
"3.5.0",
"3.4.2",
"3.4.0",
"3.3.3",
"3.3.2",
"3.3.1",
"3.3.0",
"3.2.2",
"3.2.1",
"3.2.0",
"3.1.0",
"3.0.7",
"3.0.6",
"3.0.5",
"3.0.4",
"3.0.3",
"3.0.2",
"3.0.1",
"3.0.0",
"2.1.4",
"2.1.3",
"2.1.2",
"2.1.1",
"2.1.0",
"v2.0.1",
"v2.0.0",
"v2.0.0-alpha-006",
"v2.0.0-alpha-005",
"v2.0.0-alpha-004",
"v2.0.0-alpha-003",
"v2.0.0-alpha-002",
"v2.0.0-alpha-001",
"v1.2.9",
"v1.2.8",
"v1.2.7",
"v1.2.6",
"v1.2.5",
"v1.2.4",
"v1.2.3",
"v1.2.2",
"v1.2.1",
"v1.2.0",
"v1.1.1",
"v1.1.0",
"v1.0.0",
"v1.0.0-beta-006",
"v1.0.0-beta-005",
"v1.0.0-beta-004",
"v1.0.0-beta-003",
"v1.0.0-beta-002",
"v1.0.0-beta-001",
"v0.16.0",
"v0.15.0",
"v0.14.0",
"v0.13.0",
"v0.12.1",
"v0.12.0",
"v0.11.0",
"v0.10.0",
"v0.9.1",
"v0.9.0",
"v0.7.0",
"v0.6.0",
"v0.5.0",
"v0.4.0",
"v0.3.1",
"v0.3.0",
"v0.2.2",
"v0.2.1",
"v0.2.0",
"v0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74795.json"
}
}
],
"modified": "2026-10-28T02:30:46.171166317Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74795.json",
"https://github.com/scriban/scriban/security/advisories/GHSA-wgh7-7m3c-fx25",
"https://nvd.nist.gov/vuln/detail/CVE-2026-74795",
"https://www.vulncheck.com/advisories/scriban-before-denial-of-service-via-uncontrolled-recursion"
],
"provider_metadata": {
"cwe_ids": [
"CWE-674"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74795.json"
}
},
"related_cves": [
{
"value": "CVE-2026-74795",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 514245,
"published_at": "2026-08-16T13:14:17.698+00:00"
}