{"id":"EUVD-2026-59955","revision":null,"records":[{"revision":"57f5f26d3ca44e0abe3b1113193de426","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-74789","aliases":[],"title":"Scriban before 7.0.0 LoopLimit Bypass via Built-in Operations","description":"Scriban before 7.0.0 (affected <= 6.6.0) applies its LoopLimit constraint only to script loop statements and not to expensive iteration performed inside built-in operators and functions. As a result, a single expression such as {{ 1..1000000 | array.size }} — or a memory-amplification expression such as {{ 'A' * 200000000 }} — can force large CPU or memory consumption even when LoopLimit is configured to a very small value, resulting in denial of service. Applications that render attacker-controlled templates and rely on LoopLimit for safe execution are affected.","state":0,"publishedAt":"2026-08-16T13:14:13.792+00:00","modifiedAt":"2026-08-17T16:04:43.768+00:00","affected":[{"ecosystem":"NuGet","name":"scriban","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"scriban\",\n                    \"product\": \"scriban\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:nuget/scriban\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"7.0.0\"\n                        },\n                        {\n                            \"version\": \"7.0.0\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":8.7,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://github.com/scriban/scriban/security/advisories/GHSA-c875-h985-hvrc","https://www.vulncheck.com/advisories/scriban-before-looplimit-bypass-via-built-in-operations"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-74789","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-74789","identifiers":["CVE-2026-74789"]},"retained":false,"historicalAffected":[]},{"revision":"ee8dbba7ad0b4cba9f251233a6479c6c","observedAt":"2026-11-19T22:24:08.877+00:00","statement":{"source":"euvd","id":"EUVD-2026-59955","aliases":["CVE-2026-74789","GHSA-5vwr-vwx4-9hc3"],"title":"Scriban before 7.0.0 (affected <= 6.6.0) applies its LoopLimit constraint only to script loop statements and not to expensive iteration performed inside built-in operators and functions. As a result, a single expression such as {{ 1..100000…","description":"Scriban before 7.0.0 (affected <= 6.6.0) applies its LoopLimit constraint only to script loop statements and not to expensive iteration performed inside built-in operators and functions. As a result, a single expression such as {{ 1..1000000 | array.size }} — or a memory-amplification expression such as {{ 'A' * 200000000 }} — can force large CPU or memory consumption even when LoopLimit is configured to a very small value, resulting in denial of service. Applications that render attacker-controlled templates and rely on LoopLimit for safe execution are affected.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 4.0","vector":"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","score":8.7,"severity":null}],"references":["https://github.com/scriban/scriban/security/advisories/GHSA-c875-h985-hvrc","https://www.vulncheck.com/advisories/scriban-before-looplimit-bypass-via-built-in-operations"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-59955","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 16, 2026, 1:14:13 PM","dateUpdated":"Aug 17, 2026, 4:04:43 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-59955","identifiers":["EUVD-2026-59955","CVE-2026-74789","GHSA-5vwr-vwx4-9hc3"]},"retained":false,"historicalAffected":[]},{"revision":"8ade435239f84feb80ae73ad7b968675","observedAt":"2026-10-25T15:19:09.409+00:00","statement":{"source":"nvd","id":"CVE-2026-74789","aliases":[],"title":"Scriban before 7.0.0 (affected <= 6.6.0) applies its LoopLimit constraint only to script loop statements and not to expensive iteration performed inside built-in operators and functions. As a result, a single expression such as {{ 1..100000…","description":"Scriban before 7.0.0 (affected <= 6.6.0) applies its LoopLimit constraint only to script loop statements and not to expensive iteration performed inside built-in operators and functions. As a result, a single expression such as {{ 1..1000000 | array.size }} — or a memory-amplification expression such as {{ 'A' * 200000000 }} — can force large CPU or memory consumption even when LoopLimit is configured to a very small value, resulting in denial of service. Applications that render attacker-controlled templates and rely on LoopLimit for safe execution are affected.","state":0,"publishedAt":"2026-08-16T14:16:56.917+00:00","modifiedAt":"2026-08-31T20:30:14.457+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · disclosure@vulncheck.com · Secondary","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","score":8.7,"severity":"HIGH"},{"system":"CVSS 3.1 · disclosure@vulncheck.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://github.com/scriban/scriban/security/advisories/GHSA-c875-h985-hvrc","https://www.vulncheck.com/advisories/scriban-before-looplimit-bypass-via-built-in-operations"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-74789","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-400"],"productCriteria":[],"sourceDates":{"published":"2026-08-16T14:16:56.917","lastModified":"2026-08-31T20:30:14.457"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-74789","identifiers":["CVE-2026-74789"]},"retained":false,"historicalAffected":[]},{"revision":"900aeb83e2d84fec88c4a5167615adc8","observedAt":"2026-10-23T16:01:25.029+00:00","statement":{"source":"osv","id":"GHSA-c875-h985-hvrc","aliases":["CVE-2026-74789"],"title":"Scriban: Built-in operations bypass LoopLimit and delay cancellation, enabling Denial of Service","description":"## Summary\n\nScriban's `LoopLimit` only applies to script loop statements, not to expensive iteration performed inside operators and builtins. An attacker can submit a single expression such as `{{ 1..1000000 | array.size }}` and force large amounts of CPU work even when `LoopLimit` is set to a very small value.\n\n## Details\n\nThe relevant code path is:\n\n- `ScriptBlockStatement.Evaluate()` calls `context.CheckAbort()` once per statement in `src/Scriban/Syntax/Statements/ScriptBlockStatement.cs` lines 41–46.\n- `LoopLimit` enforcement is tied to script loop execution via `TemplateContext.StepLoop()`, not to internal helper iteration.\n- `array.size` in `src/Scriban/Functions/ArrayFunctions.cs` lines 596–609 calls `list.Cast<object>().Count()` for non-collection enumerables.\n- `1..N` creates a `ScriptRange` from `ScriptBinaryExpression.RangeInclude()` in `src/Scriban/Syntax/Expressions/ScriptBinaryExpression.cs` lines 745–748.\n- `ScriptRange` then yields every element one by one **without going through `StepLoop()`** in `src/Scriban/Runtime/ScriptRange.cs`.\n\nThis means a single statement can perform arbitrarily large iteration without being stopped by `LoopLimit`.\n\nThere is also a related memory-amplification path in `string * int`:\n\n- `ScriptBinaryExpression.CalculateToString()` appends in a plain `for` loop in `src/Scriban/Syntax/Expressions/ScriptBinaryExpression.cs` lines 301–334.\n\n---\n\n## Proof of Concept\n\n### Setup\n\n```bash\nmkdir scriban-poc3\ncd scriban-poc3\ndotnet new console --framework net8.0\ndotnet add package Scriban --version 6.6.0\n```\n\n### `Program.cs`\n\n```csharp\nusing Scriban;\n\nvar template = Template.Parse(\"{{ 1..1000000 | array.size }}\");\n\nvar context = new TemplateContext\n{\n    LoopLimit = 1\n};\n\nConsole.WriteLine(template.Render(context));\n```\n\n### Run\n\n```bash\ndotnet run\n```\n\n### Actual Output\n\n```\n1000000\n```\n\n### Expected Behavior\n\nA safety limit of `LoopLimit = 1` should prevent a template from performing one million iterations worth of work.\n\n### Optional Stronger Variant (Memory Amplification)\n\n```csharp\nusing Scriban;\n\nvar template = Template.Parse(\"{{ 'A' * 200000000 }}\");\nvar context = new TemplateContext\n{\n    LoopLimit = 1\n};\n\ntemplate.Render(context);\n```\n\nThis variant demonstrates that `LoopLimit` also does not constrain large internal allocation work.\n\n---\n\n## Impact\n\nThis is an uncontrolled resource consumption issue. Any application that accepts attacker-controlled templates and relies on `LoopLimit` as part of its safe-runtime configuration can still be forced into heavy CPU or memory work by a single expression.\n\nThe issue impacts:\n\n- Template-as-a-service systems\n- CMS or email rendering systems that accept user templates\n- Any multi-tenant use of Scriban with untrusted template content","state":0,"publishedAt":"2026-03-24T22:13:08+00:00","modifiedAt":"2026-08-17T03:55:58.6222444+00:00","affected":[{"ecosystem":"NuGet","name":"scriban","ranges":[{"type":"ECOSYSTEM","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"7.0.0"}]}],"versions":["0.1.0","0.10.0","0.11.0","0.12.0","0.12.1","0.13.0","0.14.0","0.15.0","0.16.0","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.1-pre028","0.4.0","0.5.0","0.6.0","0.7.0","0.9.0","0.9.0-pre100","0.9.1","1.0.0","1.0.0-beta-001","1.0.0-beta-002","1.0.0-beta-003","1.0.0-beta-004","1.0.0-beta-005","1.0.0-beta-006","1.1.0","1.1.1","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5","1.2.6","1.2.7","1.2.8","1.2.9","2.0.0","2.0.0-alpha-001","2.0.0-alpha-002","2.0.0-alpha-003","2.0.0-alpha-004","2.0.0-alpha-005","2.0.0-alpha-006","2.0.1","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.0.6","3.0.7","3.1.0","3.2.0","3.2.1","3.2.2","3.3.0","3.3.1","3.3.2","3.3.3","3.4.0","3.4.1","3.4.2","3.5.0","3.6.0","3.7.0","3.8.0","3.8.1","3.8.2","3.9.0","4.0.0","4.0.1","4.0.2","4.1.0","5.0.0","5.1.0","5.10.0","5.11.0","5.12.0","5.12.1","5.2.0","5.3.0","5.4.0","5.4.1","5.4.2","5.4.3","5.4.4","5.4.5","5.4.6","5.5.0","5.5.1","5.5.2","5.6.0","5.7.0","5.8.0","5.9.0","5.9.1","6.0.0","6.1.0","6.2.0","6.2.1","6.3.0","6.4.0","6.5.0","6.5.1","6.5.2","6.5.3","6.5.4","6.5.5","6.5.6","6.5.7","6.5.8","6.6.0"],"rawVersionEvidence":null},{"ecosystem":"NuGet","name":"Scriban.Signed","ranges":[{"type":"ECOSYSTEM","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"7.0.0"}]}],"versions":["0.10.0","0.11.0","0.12.0","0.12.1","0.13.0","0.14.0","0.15.0","0.16.0","0.9.0","0.9.1","1.0.0","1.0.0-beta-001","1.0.0-beta-002","1.0.0-beta-003","1.0.0-beta-004","1.0.0-beta-005","1.0.0-beta-006","1.1.0","1.1.1","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5","1.2.6","1.2.7","1.2.8","1.2.9","2.0.0","2.0.0-alpha-001","2.0.0-alpha-002","2.0.0-alpha-003","2.0.0-alpha-004","2.0.0-alpha-005","2.0.0-alpha-006","2.0.1","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.0.6","3.0.7","3.1.0","3.2.0","3.2.1","3.2.2","3.3.0","3.3.1","3.3.2","3.3.3","3.4.0","3.4.1","3.4.2","3.5.0","3.6.0","3.7.0","3.8.0","3.8.1","3.8.2","3.9.0","4.0.0","4.0.1","4.0.2","4.1.0","5.0.0","5.1.0","5.10.0","5.11.0","5.12.0","5.12.1","5.2.0","5.3.0","5.4.0","5.4.1","5.4.2","5.4.3","5.4.4","5.4.5","5.4.6","5.5.0","5.5.1","5.5.2","5.6.0","5.7.0","5.8.0","5.9.0","5.9.1","6.0.0","6.1.0","6.2.0","6.2.1","6.3.0","6.4.0","6.5.0","6.5.1","6.5.2","6.5.3","6.5.4","6.5.5","6.5.6","6.5.7","6.5.8","6.6.0"],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/scriban/scriban/security/advisories/GHSA-c875-h985-hvrc","https://github.com/scriban/scriban"],"sourceUrl":"https://github.com/advisories/GHSA-c875-h985-hvrc","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-c875-h985-hvrc","identifiers":["GHSA-c875-h985-hvrc","CVE-2026-74789"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-20T04:24:03.1656347+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-20T04:24:03.1656347+00:00","lastSuccessAt":"2026-11-20T04:24:03.3238543+00:00","error":null,"lastVerifiedAt":"2026-11-20T04:24:03.3238549+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-ab394367b327976f2e615091908e1dede6760751304792bb06c748f95767cbef-3c254fb81a099762b5f3965cf4f869ad9e42b5cae173b622d645aadccc5fb4fa","complete":true,"records":429276,"lastAttemptAt":"2026-11-20T04:20:59.1967041+00:00","lastSuccessAt":"2026-11-20T04:20:59.1769175+00:00","error":null,"lastVerifiedAt":"2026-11-20T04:20:59.1967041+00:00","snapshotPublishedAt":"2026-11-20T03:30:14+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b46d816d279d4522af5c24b18b474b9b","complete":false,"records":13903,"lastAttemptAt":"2026-11-20T04:34:05.5717073+00:00","lastSuccessAt":"2026-11-20T04:34:05.566+00:00","error":"448 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-20T04:34:05.566+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13361,"expectedIdentifiers":13951,"failedIdentifiers":448},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-20T04:24:03.1656347+00:00","complete":true,"records":1130,"lastAttemptAt":"2026-11-20T04:24:03.1656347+00:00","lastSuccessAt":"2026-11-20T04:24:03.3247198+00:00","error":null,"lastVerifiedAt":"2026-11-20T04:24:03.3247226+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-4f4c49e3a2cc47ada74ec1a85c1f4249","complete":true,"records":13915,"lastAttemptAt":"2026-11-20T04:24:24.6289791+00:00","lastSuccessAt":"2026-11-20T04:24:24.623+00:00","error":null,"lastVerifiedAt":"2026-11-20T04:24:24.623+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13951,"expectedIdentifiers":13951,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-8c782c8bda9dbab8135c62bfbc9a19fa3557f15c26fbd641daea6b40b297253e","complete":true,"records":9981,"lastAttemptAt":"2026-11-20T04:24:03.0925119+00:00","lastSuccessAt":"2026-11-20T01:30:46.6941716+00:00","error":null,"lastVerifiedAt":"2026-11-20T04:24:03.0925119+00:00","snapshotPublishedAt":"2026-11-20T00:33:13+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-94b3a229089d62296b97f627a772880f88ab7164d62486372661c0a39e321234","complete":true,"records":2019,"lastAttemptAt":"2026-11-20T04:20:59.3555914+00:00","lastSuccessAt":"2026-11-20T01:29:01.8774014+00:00","error":null,"lastVerifiedAt":"2026-11-20T04:20:59.3555914+00:00","snapshotPublishedAt":"2026-11-20T00:17:59+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-7ce196026235c6501d0b2fb81592d1b9dc06e8705525d41efefd322e75f6c22f","complete":true,"records":3200,"lastAttemptAt":"2026-11-20T04:24:03.1146008+00:00","lastSuccessAt":"2026-11-20T01:30:49.8670987+00:00","error":null,"lastVerifiedAt":"2026-11-20T04:24:03.1146008+00:00","snapshotPublishedAt":"2026-11-20T00:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-0537254c02bf0b8a4a3bc3f2f70bbee04f26a2c639632f6016ad29d0b4723547","complete":true,"records":232813,"lastAttemptAt":"2026-11-20T04:24:02.9473856+00:00","lastSuccessAt":"2026-11-20T04:24:01.4919071+00:00","error":null,"lastVerifiedAt":"2026-11-20T04:24:02.9473856+00:00","snapshotPublishedAt":"2026-11-20T03:33:13+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}