// For flags

CVE-2023-23921

Moodle: reflected xss risk in some returnurl parameters

Severity Score

6.1
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
Descriptions

The vulnerability was found Moodle which exists due to insufficient sanitization of user-supplied data in some returnurl parameters. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website. This flaw allows a remote attacker to perform cross-site scripting (XSS) attacks.

*Credits: Upstream acknowledges DegrangeM as the original reporter.
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
Attack Vector
Network
Attack Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
None
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2023-01-19 CVE Reserved
  • 2023-02-17 CVE Published
  • 2024-08-02 CVE Updated
  • 2025-03-30 EPSS Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Moodle
Search vendor "Moodle"
Moodle
Search vendor "Moodle" for product "Moodle"
>= 3.9.0 < 3.9.19
Search vendor "Moodle" for product "Moodle" and version " >= 3.9.0 < 3.9.19"
-
Affected
Moodle
Search vendor "Moodle"
Moodle
Search vendor "Moodle" for product "Moodle"
>= 3.11.0 < 3.11.12
Search vendor "Moodle" for product "Moodle" and version " >= 3.11.0 < 3.11.12"
-
Affected
Moodle
Search vendor "Moodle"
Moodle
Search vendor "Moodle" for product "Moodle"
>= 4.0.0 < 4.0.6
Search vendor "Moodle" for product "Moodle" and version " >= 4.0.0 < 4.0.6"
-
Affected
Moodle
Search vendor "Moodle"
Moodle
Search vendor "Moodle" for product "Moodle"
4.1.0
Search vendor "Moodle" for product "Moodle" and version "4.1.0"
-
Affected