CVE-2010-1619: Moodle Cross-site Scripting Vulnerability in KSES HTML Cleaning Library

moodle/moodle Updated 14 Dec 2025

Summary

13/05/2022
Yes i
Low
1.3

CVE-2010-1619: Moodle vulnerable to Cross-site Scripting. Affects moodle/moodle across 2 version ranges.

>= 1.8.0, < 1.8.12 >= 1.9.0, < 1.9.8

Fixed in 1.8.12 or 1.9.8, 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 management, and content delivery. However, certain versions of Moodle are vulnerable to a Cross-site Scripting (XSS) attack due to flaws in the KSES HTML text cleaning library, which can allow attackers to inject malicious scripts into web pages.

Vulnerability Detail

The vulnerability arises from the fix_non_standard_entities function in the KSES HTML text cleaning library (weblib.php). This flaw exists in Moodle versions 1.8.x prior to 1.8.12 and 1.9.x prior to 1.9.8. Attackers can exploit this vulnerability by crafting HTML entities that, when processed by the affected versions of Moodle, can lead to arbitrary web script or HTML injection. This could result in unauthorized actions being performed on behalf of users, data theft, or the distribution of malware.

How To Fix

Fixed versions by release line

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

  • >= 1.8.0, < 1.8.12 1.8.12
    composer require moodle/moodle:1.8.12
  • >= 1.9.0, < 1.9.8 1.9.8
    composer require moodle/moodle:1.9.8

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 disable the processing of HTML entities in user-generated content until the update is applied. However, this may limit the functionality of the platform and should only be considered a short-term measure.

Conclusion

The CVE-2010-1619 vulnerability in Moodle poses a significant risk due to its potential for Cross-site Scripting attacks. It is crucial for users to update to the latest patched versions to safeguard their applications and users from potential exploitation.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

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

Moodle versions 1.8.x before 1.8.12 and 1.9.x before 1.9.8 are affected by this vulnerability.

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

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

A temporary workaround is to disable the processing of HTML entities in user-generated content, but this may limit functionality.

Related vulnerabilities

Recent vulnerabilities recorded for moodle/moodle.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Fixed versions by release line

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

  • >= 1.8.0, < 1.8.12 1.8.12
    composer require moodle/moodle:1.8.12
  • >= 1.9.0, < 1.9.8 1.9.8
    composer require moodle/moodle:1.9.8

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