Live threats
VulnFox

All CVEs / Moodle

CVE-2023-23921Moodle

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
—
Auth required
No
Published
Feb 17, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Moodle.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist moodle/moodle < 3.9.19 3.9.19 composer require "moodle/moodle:^3.9.19"
Packagist moodle/moodle ≥ 3.10.0 < 3.11.12 3.11.12 composer require "moodle/moodle:^3.11.12"
Packagist moodle/moodle ≥ 4.0.0-beta < 4.0.6 4.0.6 composer require "moodle/moodle:^4.0.6"
Packagist moodle/moodle ≥ 4.1.0-beta < 4.1.1 4.1.1 composer require "moodle/moodle:^4.1.1"

Per OSV / GitHub Advisories (GHSA-97qf-pq7x-964m). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
moodlemoodle≥ 3.9.0 < 3.9.19
moodlemoodle≥ 3.11.0 < 3.11.12
moodlemoodle≥ 4.0.0 < 4.0.6
moodlemoodle4.1.0

Official sources

References

Links published by the sources. Open them with care.