CVE-2019-3847
Moodle XSS Vulnerability
Also known as GHSA-qrcj-6fjw-3h9h
Mitigation
- Upgrade moodle/moodle to one of 3.6.3, 3.5.5, 3.4.8, 3.1.17 (or later in the same release line).
Who should check
- Projects that depend on Packagist package moodle/moodle (>= 3.6.0, < 3.6.3)
- Anyone running [UNKNOWN] Moodle 3.6 to 3.6.2; 3.5 to 3.5.4; 3.4 to 3.4.7; 3.1 to 3.1.16 and earlier unsupported versions
Vulnerability facts
- Affected
- moodle/moodle >= 3.6.0, < 3.6.3
- Fixed in
- 3.6.3, 3.5.5, 3.4.8, 3.1.17
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 5.4 (v3.0, CNA)CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: None
- EPSS
- 2.22% chance of exploitation in 30 days (percentile 83, 2026-11-26)
- CWE
- CWE-79
- Modified
Description
A vulnerability was found in moodle before versions 3.6.3, 3.5.5, 3.4.8 and 3.1.17. Users with the "login as other users" capability (such as administrators/managers) can access other users' Dashboards, but the JavaScript those other users may have added to their Dashboard was not being escaped when being viewed by the user logging in on their behalf.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist moodle/moodle | >= 3.6.0, < 3.6.3 | 3.6.3, 3.5.5, 3.4.8, 3.1.17 | osv |
| [UNKNOWN] Moodle | 3.6 to 3.6.2; 3.5 to 3.5.4; 3.4 to 3.4.7; 3.1 to 3.1.16 and earlier unsupported versions | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2019-3847. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2019-3847.md Affected: moodle/moodle >= 3.6.0, < 3.6.3 Fixed in: 3.6.3, 3.5.5, 3.4.8, 3.1.17 Steps: 1. Search this machine and project for moodle/moodle (Packagist), [UNKNOWN] Moodle: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3847
- https://moodle.org/mod/forum/discuss.php?d=384010#p1547742
- https://github.com/moodle/moodle/commit/070f24d006eab6b958eb083530de159b43c538ed
- https://github.com/moodle/moodle/commit/93dda3bfd3caaaa8d23fe8ede543f27ef774958d
- https://github.com/moodle/moodle/commit/a37e26d2efe1ca0e4d8d69c611a748af35b33674
- https://github.com/moodle/moodle/commit/e836242e1c04cd62d0afa4a790074fd245628e7a
- https://github.com/moodle/moodle/commit/ec3b63c772d6448765c68268234cf36c1a91bcac
FAQ
Is CVE-2019-3847 being exploited?
There is no confirmed exploitation: CVE-2019-3847 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2019-3847?
Medium: CVSS 5.4 (v3.0, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2019-3847?
moodle/moodle >= 3.6.0, < 3.6.3.
Is there a fix for CVE-2019-3847?
Yes. Fixed in 3.6.3, 3.5.5, 3.4.8, 3.1.17. Upgrade moodle/moodle to one of 3.6.3, 3.5.5, 3.4.8, 3.1.17 (or later in the same release line).
How do I check if I'm affected by CVE-2019-3847?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.