# Moodle stored XSS via calendar's event title when deleting the event

Advisory record · `GHSA-p5cg-6rfr-6mx8`

- **Identifiers:** `GHSA-p5cg-6rfr-6mx8` · `BIT-moodle-2024-38274` · `CVE-2024-38274` · `PKSA-gstb-chkw-qtcd`
- **State:** Confirmed
- **Severity:** CVSS 6.1 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 18 Jun 2024
- **Updated:** 8 Aug 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 18 Jun 2024, 21:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `moodle/moodle` (Packagist): affected `>=4.4.0-beta, <4.4.1 || >=4.3.0-beta, <4.3.5 || >=4.2.0-beta, <4.2.8 || <4.1.11`; fixed in `4.4.1`, `4.3.5`, `4.2.8`, `4.1.11`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Moodle versions before 4.1.11, from 4.2.0-beta before 4.2.8, from 4.3.0-beta before 4.3.5, and from 4.4.0-beta before 4.4.1 are affected by a stored cross-site scripting issue. Calendar event titles were insufficiently escaped in the event deletion prompt, so a malicious title could run script in a user's browser. The source gives few details about who can create such events or what precise conditions are needed. Upgrade to 4.1.11, 4.2.8, 4.3.5, 4.4.1, or later.

Written 3 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.1 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.0038, the 32nd percentile, on 23 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:26 UTC: First seen by agentprime
- 31 Oct 2026, 14:26 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-p5cg-6rfr-6mx8)

## Sources

- [GitHub Advisory Database: GHSA-p5cg-6rfr-6mx8](https://github.com/advisories/GHSA-p5cg-6rfr-6mx8)
- [OSV: GHSA-p5cg-6rfr-6mx8](https://osv.dev/vulnerability/GHSA-p5cg-6rfr-6mx8)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-38274>
- <https://github.com/moodle/moodle>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/F7AZYR7EXV6E5SQE2GYTNQE3NOENJCQ6>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GHTIX55J4Q4LEOMLNEA4OZSWVEENQX7E>
- <https://moodle.org/mod/forum/discuss.php?d=459499>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-p5cg-6rfr-6mx8>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-p5cg-6rfr-6mx8/>. Everything for agents: <https://agentprime.io/llms.txt>.
