patchminder
Proof of concept · Exploit-DB CVE-2019-3810

Cross-site scriptingin the moodle/moodle package.

Published 25 Mar 2019 · Updated 4 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (Exploit-DB).

Attack code is public
Severity
Medium 4.3
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 13.8% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

A flaw was found in moodle versions 3.6 to 3.6.1, 3.5 to 3.5.3, 3.4 to 3.4.6, 3.1 to 3.1.15 and earlier unsupported versions. The /userpix/ page did not escape users' full names, which are included as text when hovering over profile images. Note this page is not linked to by default and its access is restricted.

What to do now
  • Upgrade moodle/moodle (Packagist) to 3.1.15, 3.4.6, 3.5.3, 3.6.1 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
moodle
Not confirmed
Not confirmed
CVE record
moodle/moodle (Packagist)
3.6.0 to before 3.6.1
3.6.1
GitHub advisory
moodle/moodle (Packagist)
3.5.0 to before 3.5.3
3.5.3
GitHub advisory
moodle/moodle (Packagist)
3.4.0 to before 3.4.6
3.4.6
GitHub advisory
moodle/moodle (Packagist)
3.1.0 to before 3.1.15
3.1.15
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 3 Jan 2019
    CVE ID reserved by redhat.
  2. 25 Mar 2019
    Published in the CVE List.
  3. 29 Apr 2021
    First public proof of concept on GitHub.
  4. 4 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (Exploit-DB).

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
1 entry
GitHub proof of concepts
1 repository
Exploit-DBEDB-ID 49814web application exploit for php, published 30 Apr 2021
GitHubno warning signs foundfarisv/Moodle-CVE-2019-381017 stars · created 29 Apr 2021Moodle (< 3.6.2, < 3.5.4, < 3.4.7, < 3.1.16) XSS PoC for Privilege Escalation (Student to Admin)

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other vulnerabilities in this package

Same weakness: Cross-site scripting

All CWE-79 vulnerabilities

References
Cite this page

Patchminder. CVE-2019-3810: Cross-site scripting in the moodle/moodle package. https://patchminder.com/cve/cve-2019-3810/ (accessed 5 December 2026).