# Moodle Cross-site Scripting vulnerability in the KSES text cleaning filter

Advisory record · `GHSA-3gm8-32vv-q8mp`

- **Identifiers:** `GHSA-3gm8-32vv-q8mp` · `CVE-2010-2230` · `PKSA-jq8f-1jnp-3sv5`
- **State:** Confirmed
- **Severity:** No CVSS score
- **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:** 13 May 2022
- **Updated:** 7 Feb 2024
- **Reviewed by a person:** No

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

## Affected packages

- `moodle/moodle` (Packagist): affected `<1.8.13 || >=1.9.0, <1.9.9`; fixed in `1.8.13`, `1.9.9`

## 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

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.022, the 83rd percentile, on 26 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 13 May 2022. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-3gm8-32vv-q8mp](https://github.com/advisories/GHSA-3gm8-32vv-q8mp)
- [OSV: GHSA-3gm8-32vv-q8mp](https://osv.dev/vulnerability/GHSA-3gm8-32vv-q8mp)
- <https://nvd.nist.gov/vuln/detail/CVE-2010-2230>
- <https://github.com/moodle/moodle/commit/704c5dfed4f4531b6d74d19cfad573984e74885e>
- <https://bugzilla.redhat.com/show_bug.cgi?id=605809>
- <https://github.com/moodle/moodle>
- <https://web.archive.org/web/20100621005117/http://secunia.com/advisories/40248>
- <https://web.archive.org/web/20100711044720/http://secunia.com/advisories/40352>
- <http://cvs.moodle.org/moodle/lib/weblib.php?r1=1.812.2.114&r2=1.812.2.115>
- <http://cvs.moodle.org/moodle/lib/weblib.php?r1=1.970.2.171&r2=1.970.2.172>
- <http://docs.moodle.org/en/Moodle_1.8.13_release_notes>
- <http://docs.moodle.org/en/Moodle_1.9.9_release_notes>
- <http://lists.fedoraproject.org/pipermail/package-announce/2010-June/043285.html>
- <http://lists.fedoraproject.org/pipermail/package-announce/2010-June/043291.html>

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-3gm8-32vv-q8mp>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-3gm8-32vv-q8mp/>. Everything for agents: <https://agentprime.io/llms.txt>.
