Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | wordpress | 2.5.0-1 | — |
| Debian 13 | wordpress | 2.5.0-1 | — |
| Debian 12 | wordpress | 2.5.0-1 | — |
| Debian 5.0 | wordpress | 2.5.1-11+lenny1 | DSA-1871-1 |
| Debian 4.0 | moodle | 1.6.3-2+etch1 | DSA-1691-1 |
| Debian 4.0 | wordpress | 2.0.10-1etch4 | DSA-1871-2, DSA-1871-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | moodle/moodle | < 1.8.5 | 1.8.5 | GHSA-v759-3wr5-p294 |
Advisories 3
- DSA-1871-2 wordpress - regression fix Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1871-1 wordpress - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1691-1 moodle - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
References
- 29491 third-party-advisory
- 31017 third-party-advisory
- 32400 third-party-advisory
- SUSE-SR:2008:015 vendor-advisory
- 32446 third-party-advisory
- DSA-1871 vendor-advisory
- 30986 third-party-advisory
- egroupware-badprotocolonce-security-bypass(41435) vdb-entry
- http://www.egroupware.org/viewvc/branches/1.4/phpgwapi/inc/class.kses.inc.php?r1=23625&r2=25110&pathrev=25110
- FEDORA-2008-6226 vendor-advisory
- 31018 third-party-advisory
- USN-658-1 vendor-advisory
- http://docs.moodle.org/en/Release_Notes#Moodle_1.8.5
- [oss-security] 20080708 Re: CVE request: moodle xss in < 1.8.5 mailing-list
- 30073 third-party-advisory
- http://www.egroupware.org/changelog
- 28424 vdb-entry
- GLSA-200805-04 vendor-advisory
- ADV-2008-0989 vdb-entry
- DSA-1691 vendor-advisory
- 31167 third-party-advisory