CVE-2025-67850CWE-79

Moodle: moodle: cross-site scripting vulnerability via inadequate input filtering in formula editor

High · published February 3, 2026

CVSS v3.1
7.3
EPSS
0%
Percentile
22.3
In the wild
Unconfirmed
What it is

⚡ A crafty remote attacker can slip in malicious code through the formula editor in Moodle! Just a moment of carelessness with user input could lead to a full-on XSS attack! 🔥 Think of it like a restaurant's open kitchen: if the chef doesn't check the quality of the ingredients, someone could sneak in spoiled food — only in this case, the chef is the formula editor, and the spoiled food is malicious code! This vulnerability allows an attacker to inject harmful scripts that execute in the browsers of anyone viewing those formulas. The consequences could be absolutely devastating: unauthorized actions taken on behalf of the user, data exposure, or even worse — complete account compromise!

Put simply

Think of it like a restaurant's open kitchen: if the chef doesn't check the quality of the ingredients, someone could sneak in spoiled food — only in this case, the chef is the formula editor, and the spoiled food is malicious code! This Cross-Site Scripting (XSS) vulnerability arises from inadequate validation of user-supplied data in the arithmetic expression fields of Moodle's formula editor, allowing for remote code execution in other users' browsers when they access the affected content.

What to do

This vulnerability allows an attacker to inject harmful scripts that execute in the browsers of anyone viewing those formulas. The consequences could be absolutely devastating: unauthorized actions taken on behalf of the user, data exposure, or even worse — complete account compromise! To protect your Moodle instance, update to the latest version that addresses this vulnerability as soon as possible. Additionally, consider strengthening user input validation and employing Content Security Policy (CSP) headers to mitigate XSS risks. You've got this! Following these steps will help you keep your Moodle environment secure and user data safe! 🛡️

The record
Technical detail
CVSS v3.1
7.3 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00307 · 22.3th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2026-02-03T10:52Z
EPSS history
Timeline
  • 03 FEB 10:52Z
    Moodle: moodle: cross-site scripting vulnerability via inadequate input filtering in formula editor
    cvelistv5