Cross-Site Scripting (XSS) Affecting moodle/moodle package, versions <3.9.18>=3.11, <3.11.11>=4.0, <4.0.5


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.17% (56th 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 Cross-Site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-MOODLEMOODLE-6673219
  • published24 Apr 2024
  • disclosed23 Nov 2022
  • creditEric Merrill

Introduced: 23 Nov 2022

CVE-2022-45150  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade moodle/moodle to version 3.9.18, 3.11.11, 4.0.5 or higher.

Overview

moodle/moodle is a learning platform.

Affected versions of this package are vulnerable to Cross-Site Scripting (XSS) due to insufficient sanitization of user-supplied data in the policy tool. An attacker can trick the victim to open a specially crafted link that executes arbitrary HTML and script code in the user's browser in the context of the vulnerable website. This vulnerability may allow an attacker to perform attacks to gain access to potentially sensitive information and modification of web pages.

CVSS Scores

version 3.1