# Moodle vulnerable to Cross-site Scripting

Advisory record · `GHSA-vwhw-vp9v-q9c9`

- **Identifiers:** `GHSA-vwhw-vp9v-q9c9` · `BIT-moodle-2025-67855` · `CVE-2025-67855` · `PKSA-2j87-1r5d-n19k`
- **State:** Confirmed
- **Severity:** CVSS 5.4 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:** 3 Feb 2026
- **Updated:** 12 Feb 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 3 Feb 2026, 12:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `moodle/moodle` (Packagist): affected `<4.1.22 || >=4.4.0-beta, <4.4.12 || >=4.5.0-beta, <4.5.8 || >=5.0.0-beta, <5.0.4 || >=5.1.0-beta, <5.1.1`; fixed in `4.1.22`, `4.4.12`, `4.5.8`, `5.0.4`, `5.1.1`

## Machine-written summary

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

> Moodle versions before 4.1.22, from 4.4.0-beta to before 4.4.12, from 4.5.0-beta to before 4.5.8, from 5.0.0-beta to before 5.0.4, and from 5.1.0-beta to before 5.1.1 are vulnerable to reflected cross-site scripting in the policy tool return URL. An attacker can exploit this by sending a user a specially crafted link, which can lead to information disclosure or script execution in the user's browser. Upgrade to 4.1.22, 4.4.12, 4.5.8, 5.0.4, or 5.1.1 depending on your branch.

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

- 5.4 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`, from CNA (fedora)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0038, the 32nd percentile, on 19 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-vwhw-vp9v-q9c9)

## Sources

- [GitHub Advisory Database: GHSA-vwhw-vp9v-q9c9](https://github.com/advisories/GHSA-vwhw-vp9v-q9c9)
- [OSV: GHSA-vwhw-vp9v-q9c9](https://osv.dev/vulnerability/GHSA-vwhw-vp9v-q9c9)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-67855>
- <https://github.com/moodle/moodle/commit/0c146aa2612fb6d0544f200a018cb42da75db713>
- <https://access.redhat.com/security/cve/CVE-2025-67855>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2423861>
- <https://github.com/moodle/moodle>
- <https://moodle.org/mod/forum/discuss.php?d=471305>

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-vwhw-vp9v-q9c9>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-vwhw-vp9v-q9c9/>. Everything for agents: <https://agentprime.io/llms.txt>.
