{
  "schema": "varexis-public-evidence-record/0.3",
  "generated_at_utc": "2026-10-11T20:40:40.676Z",
  "record_id": "VXI-EXT-ADVISORY-JINJA-27516-01-v1",
  "record_kind": "external_reference",
  "title": "Jinja: Distinguish template authorship from template data",
  "system": "Jinja",
  "evidence_family": "reviewed_advisory_applicability",
  "index_status": "PUBLIC_SAFE_SOURCE_REVIEW",
  "evidence_state": "PRIMARY_DOCUMENTATION_REVIEW_ONLY",
  "canonical_question": "Does a Jinja sandbox establish that agent-supplied templates are safe to execute?",
  "near_questions": [
    "How should an agent review untrusted template sandbox safety?",
    "Who controls the Jinja template being executed?",
    "Is template authorship different from supplying template variables?",
    "Can a sandbox label justify executing generated templates?",
    "Does this Jinja advisory require control of template content?",
    "Does rendering user data prove the template is attacker-controlled?",
    "What does the frozen Jinja 3.1.6 fix refer to?",
    "Why does the maintainer patch field differ from the database?",
    "Does an empty patch field prove that no fix exists?",
    "What context is needed before accepting an untrusted template?",
    "Can this advisory establish safety of every Jinja use?",
    "Should template origin accompany a sandbox assessment?"
  ],
  "supported_claims": [
    {
      "claim": "The Jinja maintainer advisory for CVE-2025-27516 requires attacker control of template content and describes an attribute-filter path around sandbox handling. Supplying data to a fixed trusted template does not by itself establish that condition. Review who authors the template and which environment executes it. The frozen source records 3.1.6 as a fix, while the maintainer page's patched-version field lists none. Preserve that difference; an empty patch field does not prove no fix exists. A sandbox label alone is not evidence that arbitrary generated templates are safe.",
      "reliance": "EXTERNAL_ADVISORY_REVIEW_ONLY"
    }
  ],
  "not_demonstrated_claims": [
    "a sandbox label proving arbitrary-template safety",
    "user-controlled variables equated with template authorship",
    "empty patch metadata treated as proof of no remediation"
  ],
  "public_summary": "The Jinja maintainer advisory for CVE-2025-27516 requires attacker control of template content and describes an attribute-filter path around sandbox handling. Supplying data to a fixed trusted template does not by itself establish that condition. Review who authors the template and which environment executes it. The frozen source records 3.1.6 as a fix, while the maintainer page's patched-version field lists none. Preserve that difference; an empty patch field does not prove no fix exists. A sandbox label alone is not evidence that arbitrary generated templates are safe.",
  "related_record_ids": [
    "VXI-EXT-ADVISORY-AIOHTTP-23334-01-v1"
  ],
  "source_review": {
    "source_type": "official_external_advisory_review",
    "source_title": "Jinja maintainer advisory: CVE-2025-27516",
    "source_url": "https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7",
    "checked_on": "2026-10-11",
    "candidate_record_id": "VXI-EXT-ADVISORY-JINJA-27516-01-v1",
    "candidate_record_sha256": "b7f2cf56453539ee6310c9e84dc5345f4a637295aa34a63bab25807d4fc98a83",
    "method": "Primary advisory reviewed alongside hash-verified frozen source projections. Source assertions and discrepancies remain attributed; no deployment was assessed.",
    "deployment_tested_by_varexis": false,
    "frozen_advisory_sources": [
      {
        "dataset_id": "osv-20261008-s2-d17eb238c528",
        "record_id": "VXI-OSV-33bdc823791f627d24d87229952805c5a27e84e0-5d4276994956",
        "advisory_id": "GHSA-cpwx-vrp4-4pq7",
        "package": "jinja2",
        "ecosystem": "PyPI",
        "captured_on": "2026-10-08",
        "source_pointer": "/affected/0",
        "content_sha256": "4c6e35acf49b0b48e558b19588cac8042abef96b992b9026cb29cd6b7834d0d8",
        "preview_url": "/api/index/advisories?record_id=VXI-OSV-33bdc823791f627d24d87229952805c5a27e84e0-5d4276994956"
      }
    ],
    "binding_scope": "This snapshot retains the reviewed answer and frozen source identifiers/hashes. Complete affected-package projections are separately retrievable; no deployment assessment is included.",
    "revalidation": "The delivered snapshot preserves the review date shown. Recheck current primary documentation and deployment context before relying on present applicability; payment does not trigger fresh research.",
    "current_lookup": {
      "dataset_id": "osv-canonical-20261013-v1",
      "checked_on": "2026-10-13",
      "withheld_source_record_ids": [],
      "boundary": "Historical catalogue reviews retain the source hashes checked when authored. A current preview, where available, is a separately versioned projection. Withheld bindings are not current retrieval or purchase targets."
    }
  },
  "answer_policy": {
    "classification": "ADVISORY_SOURCE_WITH_APPLICABILITY_BOUNDARIES",
    "bounded_answer": "The Jinja maintainer advisory for CVE-2025-27516 requires attacker control of template content and describes an attribute-filter path around sandbox handling. Supplying data to a fixed trusted template does not by itself establish that condition. Review who authors the template and which environment executes it. The frozen source records 3.1.6 as a fix, while the maintainer page's patched-version field lists none. Preserve that difference; an empty patch field does not prove no fix exists. A sandbox label alone is not evidence that arbitrary generated templates are safe.",
    "required_buyer_context": "Template origin and author, trust boundary, resolved Jinja version and executing environment. No template was executed or sandbox tested.",
    "missing_evidence": "A broader claim needs evidence matching the intended use. Payment does not upgrade the evidence state."
  },
  "private_boundary": "Raw logs, thresholds, private paths, source code, protected mechanisms and reconstruction-level details are excluded from public and paid delivery.",
  "paid_access_note": "The full published answer and boundaries are free. Paid access saves the selected route and source versions, with an unsigned receipt when purchased. Preview coverage before paying. Fresh research, bespoke assessment and protected evidence are excluded.",
  "service_route": {
    "request_guide": "/varexis-index/request.html",
    "request_workflow": "/varexis-index/request-workflow.json",
    "service_id": "single_request",
    "service_routes_url": "/varexis-index/service-routes.json",
    "payment_required": true,
    "availability_endpoint": "/api/index/capabilities",
    "operational_status": "AUTOMATIC_SERVICE_CAPABILITIES_GATED",
    "checkout_url": "/index-access"
  },
  "authority_boundary": "VAREXIS-INDEX informs evidence reliance. It does not provide advice, certification, deployment authority, security assurance, production approval, or guarantee.",
  "human_page": "/varexis-index/catalog.html#jinja-untrusted-template-sandbox-boundary",
  "machine_readable_record": "/varexis-index/records/jinja-untrusted-template-sandbox-boundary.json"
}
