CVE-2026-102588: Moodle XML Grade Import CSRF Vulnerability

moodle Updated 05 Oct 2026

Summary

05/10/2026
Yes i
Medium
Not published

CVE-2026-102588: Moodle: csrf in xml grade import. Affects moodle across 4 version ranges.

< 4.5.13 >= 5.0.0, < 5.0.9 >= 5.1.0, < 5.1.6 >= 5.2.0, < 5.2.2

Fixed in 4 releases; the minimum fixed version depends on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Moodle is an open-source learning platform designed to provide educators, administrators, and learners with a single robust, secure, and integrated system to create personalized learning environments. It supports various functionalities such as course management, grading, and user management. However, it has been found to be vulnerable to a Cross-Site Request Forgery (CSRF) attack in its XML grade import feature, which can lead to unauthorized grade modifications.

Vulnerability Detail

A flaw exists in Moodle's XML grade import functionality where it does not implement proper CSRF token validation. This vulnerability allows an attacker to trick an authenticated user with grade management permissions into visiting a malicious webpage. As a result, the attacker can execute unauthorized requests on behalf of the victim, potentially allowing them to set or overwrite student grades without proper authorization. This poses a significant risk to the integrity of the grading system within Moodle.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 4.5.13 4.5.13
  • >= 5.0.0, < 5.0.9 5.0.9
  • >= 5.1.0, < 5.1.6 5.1.6
  • >= 5.2.0, < 5.2.2 5.2.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, users can limit access to the XML grade import feature to trusted users only, ensuring that only those with legitimate permissions can access it. Additionally, implementing a web application firewall (WAF) may help mitigate the risk of CSRF attacks.

Conclusion

The CSRF vulnerability in Moodle's XML grade import feature poses a significant risk to the integrity of the grading system. It is crucial for users to update to the latest patched versions to mitigate this risk. By understanding the nature of this vulnerability and implementing the suggested fixes and workarounds, users can better protect their Moodle installations.

See every vulnerability recorded for moodle →

Share this vulnerability

FAQ

A Cross-Site Request Forgery (CSRF) attack tricks a user into executing unwanted actions on a web application in which they are authenticated.

You can check if your application is affected by using Vulert's playground at Vulert Scanner, which allows you to monitor and alert for open-source vulnerabilities without requiring access to the code.

If exploited, this vulnerability can allow unauthorized users to modify student grades, compromising the integrity of the educational system.

Yes, implementing CSRF tokens in forms and ensuring proper validation can help prevent such attacks.

It is recommended to regularly check for updates and apply them promptly to ensure that you have the latest security patches and features.

Related vulnerabilities

Recent vulnerabilities recorded for moodle.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 4.5.13 4.5.13
  • >= 5.0.0, < 5.0.9 5.0.9
  • >= 5.1.0, < 5.1.6 5.1.6
  • >= 5.2.0, < 5.2.2 5.2.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback