Moodle vulnerable to Cross-site scripting
The _bad_protocol_once function in phpgwapi/inc/class.kses.inc.php in KSES, as used in eGroupWare before 1.4.003, Moodle before 1.8.5, and other products, allows remote attackers to bypass HTML filtering and conduct cross-site scripting (XSS) attacks via a string containing crafted URL protocols.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | moodle/moodle | < 1.8.5 | 1.8.5 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2008-1502
- https://exchange.xforce.ibmcloud.com/vulnerabilities/41435
- https://github.com/moodle/moodle
- https://usn.ubuntu.com/658-1
- https://web.archive.org/web/20080709031015/http://www.securityfocus.com/bid/28424
- https://web.archive.org/web/20080828131802/http://secunia.com/advisories/31017
- https://web.archive.org/web/20080905011948/http://secunia.com/advisories/31018
- https://web.archive.org/web/20081011001554/http://secunia.com/advisories/31167
- https://web.archive.org/web/20081025081058/http://secunia.com/advisories/32400
- https://web.archive.org/web/20081028073531/http://secunia.com/advisories/32446
- https://web.archive.org/web/20090129193143/http://secunia.com/advisories/30986
- https://web.archive.org/web/20100819022833/http://secunia.com/advisories/30073
- https://web.archive.org/web/20120719035305/http://secunia.com/advisories/29491
- https://www.redhat.com/archives/fedora-package-announce/2008-July/msg00331.html
- http://docs.moodle.org/en/Release_Notes#Moodle_1.8.5
- http://lists.opensuse.org/opensuse-security-announce/2008-07/msg00006.html
- http://www.debian.org/security/2008/dsa-1691
- http://www.debian.org/security/2009/dsa-1871
- http://www.egroupware.org/changelog
- http://www.egroupware.org/viewvc/branches/1.4/phpgwapi/inc/class.kses.inc.php?r1=23625&r2=25110&pathrev=25110
- http://www.gentoo.org/security/en/glsa/glsa-200805-04.xml
- http://www.openwall.com/lists/oss-security/2008/07/08/14
- Weakness (CWE)
CWE-79- Platform
- Composer
- Package
moodle/moodle- Disclosed
- 01.05.2022
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-v759-3wr5-p294 - CC BY 4.0
Vulnerability history: moodle/moodle
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 437
- First → latest
- 03.2021 02.2026
- Without a fix
- 10
- Exploited in attacks
- 0
Severity breakdown
- Critical 16
- High 68
- Medium 318
- Low 35
Disclosures per year
- 2021: 11
- 2022: 285
- 2023: 43
- 2024: 53
- 2025: 33
- 2026: 12
-
Moodle vulnerable to Cross-site scripting this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.