CVE-2023-23921: Moodle: reflected xss risk in some returnurl parameters

Published Jan 19, 2023
·
Updated

MSA-23-0001: Reflected XSS risk in some returnurl parameters

Some returnurl parameters required additional sanitizing to prevent a reflected XSS risk.

Versions affected: 4.1, 4.0 to 4.0.5, 3.11 to 3.11.11, 3.9 to 3.9.18 and earlier unsupported versions Versions fixed: 4.1.1, 4.0.6, 3.11.12 and 3.9.19

Other sources

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.

MITRE

Affected Software

8 affected componentsFixes available
redhat/moodle<4.1.1
4.1.1
redhat/moodle<4.0.6
4.0.6
redhat/moodle<3.11.12
3.11.12
redhat/moodle<3.9.19
3.9.19
Moodle moodle>=3.9.0<3.9.19
Moodle moodle>=3.11.0<3.11.12
Moodle moodle>=4.0.0<4.0.6
Moodle moodle=4.1.0

Event History

Feb 17, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness

Frequently Asked Questions

1

What is the vulnerability ID?

The vulnerability ID is CVE-2023-23921.

2

What is the severity of CVE-2023-23921?

The severity of CVE-2023-23921 is high.

3

How does CVE-2023-23921 affect Moodle?

CVE-2023-23921 affects Moodle versions 3.9.0 to 3.9.19, 3.11.0 to 3.11.12, 4.0.0 to 4.0.6, and 4.1.0.

4

How can a remote attacker exploit CVE-2023-23921?

A remote attacker can trick a victim to follow a specially crafted link, allowing them to execute arbitrary HTML and script code in the user's browser within the context of the vulnerable Moodle website.

5

How can I fix CVE-2023-23921?

To fix CVE-2023-23921, update your Moodle installation to version 4.1.1, 4.0.6, 3.11.12, or 3.9.19.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203