CVE-2025-67850 PUBLISHED

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

Assigner: fedora
Reserved: 12.12.2025 Published: 03.02.2026 Updated: 03.02.2026

A flaw was found in moodle. This vulnerability, known as Cross-Site Scripting (XSS), occurs due to insufficient checks on user-provided data in the formula editor's arithmetic expression fields. A remote attacker could inject malicious code into these fields. When other users view these expressions, the malicious code would execute in their web browsers, potentially compromising their data or leading to unauthorized actions.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
CVSS Score: 7.3

Product Status

Package Collection https://github.com/moodle/moodle/
Package Name moodle
Versions Default: unaffected
  • affected from 4.1.0 to 4.1.22 (excl.)
  • affected from 4.4.0 to 4.4.12 (excl.)
  • affected from 4.5.0 to 4.5.8 (excl.)
  • affected from 5.0.0 to 5.0.4 (excl.)
  • affected from 5.1.0 to 5.1.1 (excl.)

Credits

  • Red Hat would like to thank Aleksey Solovev for reporting this issue.

References

Problem Types

  • Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') CWE