# Moodle Cross-site request forgery (CSRF) vulnerability

Advisory record · `GHSA-r867-v437-4rrm`

- **Identifiers:** `GHSA-r867-v437-4rrm` · `CVE-2016-3734` · `PKSA-6zhw-kkgc-pssc`
- **State:** Confirmed
- **Severity:** CVSS 8.8 High
- **Critical:** No
- **Weakness (CWE):** [CWE-352](https://cwe.mitre.org/data/definitions/352.html)
- **Tags:** [Cross-site request forgery (CSRF)](https://agentprime.io/advisories/tag/csrf.md)
- **Published:** 13 May 2022
- **Updated:** 16 Feb 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 13 May 2022, 01:12 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `moodle/moodle` (Packagist): affected `<2.7.14 || >=2.8, <2.8.12 || >=2.9, <2.9.6 || >=3.0, <3.0.4`; fixed in `2.7.14`, `2.8.12`, `2.9.6`, `3.0.4`

## Machine-written summary

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

> Moodle versions before 2.7.14, 2.8.12, 2.9.6 and 3.0.4 are vulnerable to cross-site request forgery in markposts.php. A remote attacker can trick a logged-in user into visiting a malicious page, which causes the user's session to mark forum posts as read without their intent. Upgrade to 2.7.14, 2.8.12, 2.9.6, 3.0.4 or later.

Written 4 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

- 8.8 High, CVSS 3.0: `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.011, the 67th percentile, on 18 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:32 UTC: First seen by agentprime
- 31 Oct 2026, 14:32 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-r867-v437-4rrm)

## Sources

- [GitHub Advisory Database: GHSA-r867-v437-4rrm](https://github.com/advisories/GHSA-r867-v437-4rrm)
- [OSV: GHSA-r867-v437-4rrm](https://osv.dev/vulnerability/GHSA-r867-v437-4rrm)
- <https://nvd.nist.gov/vuln/detail/CVE-2016-3734>
- <https://github.com/moodle/moodle/commit/01408d619ba89d32f9ad83308990ff9b0374cb57>
- <https://github.com/moodle/moodle/commit/1f5c494f761ef7961c449075adf192e149148e1a>
- <https://github.com/moodle/moodle/commit/7873e36f0cc0ccfd1424ff9302eb1ea9e4e74305>
- <https://github.com/moodle/moodle/commit/d98c24659935c1bdff4b35ec0a85ab1a3ab05d9f>
- <https://github.com/moodle/moodle/commit/e90e0ea5700ee9b016034b74ed7f41787109d1a2>
- <https://bugzilla.redhat.com/show_bug.cgi?id=1335933>
- <https://github.com/moodle/moodle>
- <https://web.archive.org/web/20160703032310/http://www.securitytracker.com/id/1035902>
- <https://web.archive.org/web/20160930194927/http://www.securityfocus.com/bid/91281>
- <http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-53755>
- <http://www.openwall.com/lists/oss-security/2016/05/17/4>

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-r867-v437-4rrm>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-r867-v437-4rrm/>. Everything for agents: <https://agentprime.io/llms.txt>.
