{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "4.5.13"
              },
              {
                "introduced": "5.0.0"
              },
              {
                "fixed": "5.0.9"
              },
              {
                "introduced": "5.1.0"
              },
              {
                "fixed": "5.1.6"
              },
              {
                "introduced": "5.2.0"
              },
              {
                "fixed": "5.2.2"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8cbae18a2898cfd8266ec91ac206e12004f0ff5f"
            },
            {
              "introduced": "78e860178314c45441a21e0b99455400b8283d48"
            },
            {
              "fixed": "152bf2ebbdd1f994331af21c80332b8d9051581c"
            },
            {
              "introduced": "eb47eff0719455a7e1f7a9805bc75dad3f6b3995"
            },
            {
              "fixed": "17513f6614237b530de7903fe32117fa026384c2"
            },
            {
              "introduced": "c197f31fd89bf5dd5ba41661b06660167e419099"
            },
            {
              "fixed": "acfa383c13dd46c83ca82894a8e95fac273fda33"
            }
          ],
          "repo": "https://github.com/moodle/moodle",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "fedora",
    "cwe_ids": [
      "CWE-346"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102588.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "5.2.0"
          },
          {
            "fixed": "5.2.2"
          },
          {
            "introduced": "5.1.0"
          },
          {
            "fixed": "5.1.6"
          },
          {
            "introduced": "5.0.0"
          },
          {
            "fixed": "5.0.9"
          },
          {
            "fixed": "4.5.13"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "A flaw was found in Moodle. The XML grade import feature lacks proper Cross-Site Request Forgery (CSRF) token validation. By tricking an authenticated user with grade management permissions into visiting a malicious webpage, an attacker can trigger unauthorized requests on the victim's behalf. This flaw allows a remote attacker to set or overwrite student grades without authorization.",
  "id": "CVE-2026-102588",
  "modified": "2026-10-03T03:31:01.008534611Z",
  "published": "2026-09-30T08:36:23.737Z",
  "references": [
    {
      "type": "WEB",
      "url": "http://git.moodle.org/gw?p=moodle.git\u0026a=search\u0026h=HEAD\u0026st=commit\u0026s=MDL-84545"
    },
    {
      "type": "WEB",
      "url": "https://git.moodle.org"
    },
    {
      "type": "WEB",
      "url": "https://moodle.org/mod/forum/discuss.php?d=482507"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/security/cve/CVE-2026-102588"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102588.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-102588"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2543643"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Moodle: csrf in xml grade import"
}