CVE-2021-47857CWE-79

Moodle 3.10.3 - 'label' Persistent Cross Site Scripting

Medium · published January 21, 2026

CVSS v4.0
5.1
EPSS
0%
Percentile
30.5
In the wild
Unconfirmed
What it is

⚠️ Mood swings can lead to malicious scripts! A persistent XSS vulnerability in Moodle 3.10.3 allows crafty attackers to inject JavaScript into calendar event subtitles. 😱 Think of it like a sneaky waiter slipping a hidden message into your dinner reservation — you think you’re just checking to see when your party is, but instead, you’re served a surprise course of chaos! If an attacker exploits this flaw, they could execute arbitrary code on users' browsers just by crafting a calendar event that looks innocuous. This could lead to data theft or even more severe attacks on your system, making it a surprisingly sneaky threat!

Put simply

Think of it like a sneaky waiter slipping a hidden message into your dinner reservation — you think you’re just checking to see when your party is, but instead, you’re served a surprise course of chaos! This persistent cross-site scripting vulnerability in Moodle allows attackers to inject malicious JavaScript into the calendar event subtitle, triggering when users view the event.

What to do

If an attacker exploits this flaw, they could execute arbitrary code on users' browsers just by crafting a calendar event that looks innocuous. This could lead to data theft or even more severe attacks on your system, making it a surprisingly sneaky threat! To mitigate this, update Moodle to version 3.10.4 or later right away! Implement input validation for the subtitle field to prevent such scripts from being executed. Don’t forget to educate users about the risks of clicking on suspicious calendar events. You've got this! With these steps, you’ll keep your Moodle environment safe and sound! 🛡️

The record
Technical detail
CVSS v4.0
5.1 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
EPSS
0.00377 · 30.5th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2026-01-21T17:27Z
EPSS history
Timeline
  • 21 JAN 17:27Z
    Moodle 3.10.3 - 'label' Persistent Cross Site Scripting
    cvelistv5