CVE-2017-2645: Moodle XSS in attachments to evidence of prior learning

moodle/moodle Updated 02 Oct 2025

Summary

17/05/2022
Yes i
Moderate
6.1

CVE-2017-2645: Moodle XSS in attachments to evidence of prior learning. Affects moodle/moodle across 2 version ranges.

>= 3.1, < 3.1.5 >= 3.2, < 3.2.2

Fixed in 3.1.5 or 3.2.2, depending 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 Penetration testing for web, API and mobile 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 management system used by educational institutions worldwide. It provides a platform for creating and managing online courses, allowing educators to deliver content and interact with students. Moodle supports various features, including the ability to attach evidence of prior learning to course materials. This vulnerability specifically affects Moodle versions 3.1 and 3.2.

Vulnerability Detail

The vulnerability in Moodle 3.x allows for cross-site scripting (XSS) attacks through attachments to evidence of prior learning. This means that an attacker can inject malicious code into the attachments, which will be executed when accessed by other users. The impact of this vulnerability can range from unauthorized access to sensitive information to the execution of arbitrary code on the user's browser.

How To Fix

Fixed versions by release line

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

  • >= 3.1, < 3.1.5 3.1.5
    composer require moodle/moodle:3.1.5
  • >= 3.2, < 3.2.2 3.2.2
    composer require moodle/moodle:3.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

There is no specific workaround provided for this vulnerability. The recommended solution is to upgrade to the patched versions of Moodle as mentioned above.

Conclusion

In conclusion, the Moodle vulnerability CVE-2017-2645 allows for cross-site scripting attacks through attachments to evidence of prior learning. To mitigate this vulnerability, it is recommended to upgrade to the patched versions of Moodle (3.1.5 or 3.2.2). For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

Moodle is an open-source learning management system used by educational institutions to create and manage online courses.

Evidence of prior learning in Moodle refers to attachments or documents that students can provide to demonstrate their previous knowledge or achievements.

Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users.

The potential consequences of this vulnerability include unauthorized access to sensitive information, manipulation of user data, and the execution of arbitrary code on users' browsers.

To protect your Moodle installation, it is crucial to keep it up to date with the latest security patches. Ensure that you regularly check for updates and apply them promptly.

Related vulnerabilities

Recent vulnerabilities recorded for moodle/moodle.

How To Fix

Fixed versions by release line

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

  • >= 3.1, < 3.1.5 3.1.5
    composer require moodle/moodle:3.1.5
  • >= 3.2, < 3.2.2 3.2.2
    composer require moodle/moodle:3.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