CVE-2023-23921

Source
https://cve.org/CVERecord?id=CVE-2023-23921
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-23921.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-23921
Aliases
Downstream
Published
2023-02-17T00:00:00Z
Modified
2026-08-12T03:51:24.615940394Z
Summary
Moodle: reflected xss risk in some returnurl parameters
Details

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.

Database specific
{
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "introduced": "4.1.0"
                },
                {
                    "fixed": "4.1.1"
                },
                {
                    "introduced": "4.0.0"
                },
                {
                    "fixed": "4.0.6"
                },
                {
                    "introduced": "3.11.0"
                },
                {
                    "fixed": "3.11.12"
                },
                {
                    "fixed": "3.9.19"
                }
            ]
        }
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/23xxx/CVE-2023-23921.json",
    "cna_assigner": "fedora",
    "cwe_ids": [
        "CWE-79"
    ]
}
References

Affected packages

Git / github.com/moodle/moodle

Affected ranges

Type
GIT
Repo
https://github.com/moodle/moodle
Events
Database specific
Show details
{
    "source": [
        "CPE_RANGE",
        "CPE_STRING"
    ],
    "cpe": [
        "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
        "cpe:2.3:a:moodle:moodle:4.1.0:-:*:*:*:*:*:*"
    ],
    "extracted_events": [
        {
            "introduced": "3.9.0"
        },
        {
            "fixed": "3.9.19"
        },
        {
            "introduced": "3.11.0"
        },
        {
            "fixed": "3.11.12"
        },
        {
            "introduced": "4.0.0"
        },
        {
            "fixed": "4.0.6"
        },
        {
            "introduced": "4.1.0-NA"
        },
        {
            "last_affected": "4.1.0-NA"
        }
    ]
}

Affected versions

4.*
4.1.0-NA
v3.*
v3.11.0
v3.11.1
v3.11.10
v3.11.11
v3.11.2
v3.11.3
v3.11.4
v3.11.5
v3.11.6
v3.11.7
v3.11.8
v3.11.9
v3.9.0
v3.9.1
v3.9.10
v3.9.11
v3.9.12
v3.9.13
v3.9.14
v3.9.15
v3.9.16
v3.9.17
v3.9.18
v3.9.2
v3.9.3
v3.9.4
v3.9.5
v3.9.6
v3.9.7
v3.9.8
v3.9.9
v4.*
v4.0.0
v4.0.1
v4.0.2
v4.0.3
v4.0.4
v4.0.5
v4.1.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-23921.json"