{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.0.10"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "DESCRIPTION"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "7b6cadbeeb92d36779438da120370bc762eb6b52"
            }
          ],
          "repo": "https://github.com/getgrav/grav",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-qjq4-jp55-4mx2"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-73"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65896.json"
  },
  "details": "Grav API Plugin (Composer package getgrav/grav-plugin-api) before 1.0.10 fails to properly validate the slug field in the POST /pages/{route}/move endpoint. PagesController::move() sanitizes the slug only with ltrim($body['slug'], '.'), which strips leading periods but does not neutralize '/' or '..' segments. An authenticated API caller with the api.pages.write permission can supply path traversal sequences (e.g., 01.home/../../../pwned) to move an entire page directory (content and media) to an arbitrary writable location outside user/pages/, including outside the Grav installation.",
  "id": "CVE-2026-65896",
  "modified": "2026-07-25T03:56:31.676028130Z",
  "published": "2026-07-23T11:42:16.817Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65896.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/getgrav/grav/security/advisories/GHSA-qjq4-jp55-4mx2"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-65896"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/grav-api-plugin-before-path-traversal-via-move"
    },
    {
      "type": "FIX",
      "url": "https://github.com/getgrav/grav/commit/f9438d4e71389b1041ac60b69b0b5714ecfa3bdd"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Grav API Plugin before 1.0.10 Path Traversal via move"
}