CVE-2011-4282: Moodle Cross-site Scripting Vulnerability in Course Tags Functionality

moodle/moodle Updated 14 Dec 2025

Summary

13/05/2022
Yes i
Low
1.3

CVE-2011-4282: Moodle vulnerable to Cross-site Scripting. Affects moodle/moodle versions >= 2.0.0, < 2.0.2. Fixed in 2.0.2. 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, user enrollment, and content delivery. However, certain versions of Moodle, specifically 2.0.x before 2.0.2, are vulnerable to cross-site scripting (XSS) attacks due to flaws in the course-tags functionality, which can allow attackers to inject malicious scripts.

Vulnerability Detail

The vulnerability arises from multiple cross-site scripting (XSS) flaws in the course-tags functionality located in tag/coursetags_more.php. Attackers can exploit these vulnerabilities by injecting arbitrary web scripts or HTML through the 'sort' or 'show' parameters. This can lead to unauthorized actions being performed on behalf of users, data theft, or the distribution of malware, thereby compromising the security and integrity of the Moodle platform.

How To Fix

Minimum fixed version

2.0.2

This is the first release that contains the fix.

composer require moodle/moodle:2.0.2

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

Workaround

If immediate updating is not possible, a temporary workaround is to sanitize and validate user inputs for the 'sort' and 'show' parameters to prevent script injection. This can be done by implementing input validation checks in the affected PHP file.

Conclusion

In summary, CVE-2011-4282 represents a significant cross-site scripting vulnerability in Moodle versions prior to 2.0.2. It is crucial for users to update their installations to the patched version to mitigate potential security risks. For those unable to update immediately, implementing input validation can serve as a temporary measure.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

CVE-2011-4282 is an identifier for a specific vulnerability in Moodle that allows cross-site scripting attacks through the course-tags functionality.

Moodle versions 2.0.x before 2.0.2 are affected by this vulnerability.

The vulnerability can lead to unauthorized actions, data theft, and the distribution of malware, compromising user security.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

If you cannot update immediately, implement input validation and sanitization for the affected parameters as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for moodle/moodle.

How To Fix

Minimum fixed version

2.0.2

This is the first release that contains the fix.

composer require moodle/moodle:2.0.2

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