Description
Cross-site scripting (XSS) vulnerability in the phpCAS client library before 1.1.0, as used in Moodle 1.8.x before 1.8.12 and 1.9.x before 1.9.8, allows remote attackers to inject arbitrary web script or HTML via a crafted URL, which is not properly handled in an error message.
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 5.0 | moodle | 1.8.13-1 | DSA-2115-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | apereo/phpcas | < 1.1.0 | 1.1.0 | GHSA-45ch-hxgr-vx8j |
| Packagist | moodle/moodle | >= 1.8.0, < 1.8.12 | 1.8.12 | GHSA-45ch-hxgr-vx8j |
| Packagist | moodle/moodle | >= 1.9.0, < 1.9.8 | 1.9.8 | GHSA-45ch-hxgr-vx8j |
Advisories 1
- DSA-2115-1 moodle - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026