Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') Affecting moodle/moodle package, versions <3.5.16>=3.8, <3.8.7>=3.9, <3.9.4>=3.10, <3.10.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-MOODLEMOODLE-6673189
  • published24 Apr 2024
  • disclosed24 May 2022
  • creditAta Hakcil

Introduced: 24 May 2022

CVE-2021-20186  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade moodle/moodle to version 3.5.16, 3.8.7, 3.9.4, 3.10.1 or higher.

Overview

moodle/moodle is a learning platform.

Affected versions of this package are vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') due to insufficient sanitizing of TeX content when the TeX notation filter is enabled. An attacker can inject malicious scripts by crafting specific TeX content.

Note:

This is only exploitable if the TeX notation filter is enabled.

CVSS Scores

version 3.1