CVE-2026-74786
HIGH 7.1CVSS 4.0Scriban: Denial of Service via Unbounded Cumulative Template Output Bypassing LimitToString
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.
- Published
- 16 Aug 2026
- Last modified
- 31 Aug 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-770
- Also known as
- GHSA-m2p3-hwv5-xpqw
- Sources
- NVDJSONOSV GHSA-m2p3-hwv5-xpqwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 7.1 | 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/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 |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | NuGet | Scriban | < 7.0.0 | 7.0.0 |
| OSV | NuGet | Scriban.Signed | < 7.0.0 | 7.0.0 |
References
- https://github.com/scriban/scriban/security/advisories/GHSA-m2p3-hwv5-xpqw · WEB
- https://www.vulncheck.com/advisories/scriban-before-denial-of-service-via-unbounded-template-output
- https://github.com/scriban/scriban · PACKAGE
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 16 Aug 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 Mar 2026)