{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "7.0.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "DESCRIPTION"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "25d148a104dd4d679a1a1932442616599e003c2f"
            }
          ],
          "repo": "https://github.com/scriban/scriban",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-x6m9-38vm-2xhf"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-226"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74791.json"
  },
  "details": "Scriban before 7.0.0 fails to clear the CachedTemplates dictionary when TemplateContext.Reset() is called, allowing cached templates to persist across reused contexts. Attackers can exploit request-dependent ITemplateLoader implementations to access previously authorized template content from earlier renders without triggering TemplateLoader.Load() again.",
  "id": "CVE-2026-74791",
  "modified": "2026-08-19T03:31:17.044095973Z",
  "published": "2026-08-16T13:14:15.049Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74791.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/scriban/scriban/security/advisories/GHSA-x6m9-38vm-2xhf"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-74791"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/scriban-before-authorization-bypass-via-stale-include-cache"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Scriban before 7.0.0 Authorization Bypass via Stale Include Cache"
}