{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "7.6.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8c98fc6e5d35d7bc893073821edf3d082602c235"
            }
          ],
          "repo": "https://github.com/scriban/scriban",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-226"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137511.json"
  },
  "details": "Scriban before 7.6.0 contains a state isolation vulnerability because TemplateContext.Reset() does not clear the Tags dictionary holding array.cycle and math.random state. Attackers supplying templates to a reused context can observe or influence cycle positions and random sequences across renders, and accumulate unbounded cycle entries to exhaust memory.",
  "id": "CVE-2026-137511",
  "modified": "2026-11-26T17:46:07.705955421Z",
  "published": "2026-11-26T16:00:53.946Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137511.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/scriban/scriban/security/advisories/GHSA-8637-5q5q-hxvw"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/scriban/scriban/security/advisories/GHSA-vhvh-mqjm-8vpg"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-137511"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/scriban-before-7.6.0-state-leakage-via-templatecontext-reset-tags"
    }
  ],
  "related": [
    "GHSA-8637-5q5q-hxvw",
    "GHSA-vhvh-mqjm-8vpg"
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Scriban before 7.6.0 State Leakage via TemplateContext.Reset() Tags"
}