CVE-2011-4306: Moodle XSS Vulnerability

moodle/moodle Updated 02 Oct 2025

Summary

13/05/2022
Yes i
Moderate
Not published

CVE-2011-4306: Moodle XSS Vulnerability. Affects moodle/moodle versions < 1.9.14. Fixed in 1.9.14. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Moodle is an open-source learning management system (LMS) used for creating and delivering online courses. It provides a platform for educators to create interactive learning environments and engage with students. Moodle is widely adopted in educational institutions and organizations worldwide. However, versions of Moodle 1.9.x prior to 1.9.14 are susceptible to a cross-site scripting (XSS) vulnerability in the course/editsection.html component. This vulnerability allows remote authenticated users to inject malicious web scripts or HTML code into the affected Moodle instance.

Vulnerability Detail

The XSS vulnerability in Moodle 1.9.x before 1.9.14 arises from insufficient input validation and sanitization in the course/editsection.html module. Attackers with authenticated access to the Moodle instance can exploit this vulnerability by crafting malicious data and injecting it into the affected page. When unsuspecting users view the compromised page, the injected scripts or HTML code will execute within their browsers, potentially leading to various security risks. These risks include session hijacking, data theft, defacement, and the execution of arbitrary code.

How To Fix

Minimum fixed version

1.9.14

This is the first release that contains the fix.

composer require moodle/moodle:1.9.14

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately feasible, administrators can apply a temporary workaround to mitigate the risk. One possible workaround is to disable the course/editsection.html module or restrict access to it for authenticated users. This can be achieved by modifying the Moodle configuration or permissions settings. However, it is important to note that workarounds may have limitations and should only be considered as temporary measures until the upgrade can be performed.

Conclusion

The XSS vulnerability in Moodle 1.9.x before 1.9.14 poses a moderate security risk to affected instances. It is crucial for administrators to upgrade to the latest version or apply the recommended workarounds to mitigate the vulnerability. Regularly monitoring for security updates and following best practices for secure software deployment are essential to maintain the integrity and security of Moodle installations. For further support and assistance in 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 (LMS) used for creating and delivering online courses. It provides a platform for educators to create interactive learning environments and engage with students.

The XSS vulnerability in Moodle allows remote authenticated users to inject malicious web scripts or HTML code into the affected instance. This can lead to various security risks, including session hijacking, data theft, defacement, and the execution of arbitrary code.

To fix this vulnerability, it is recommended to upgrade the Moodle installation to version 1.9.14 or later. This version includes the necessary patches and improvements to address the XSS vulnerability in course/editsection.html.

If upgrading to the latest version is not immediately feasible, administrators can apply a temporary workaround by disabling the course/editsection.html module or restricting access to it for authenticated users.

For more information about this vulnerability, you can refer to the official Moodle documentation, security advisories, or consult with your organization's IT security team.

Related vulnerabilities

Recent vulnerabilities recorded for moodle/moodle.

How To Fix

Minimum fixed version

1.9.14

This is the first release that contains the fix.

composer require moodle/moodle:1.9.14

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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