CVE-2010-1618 — phpcas
Fix: apereo/phpCAS@0216331CVE-2010-1618 is a Cross-site Scripting (XSS) vulnerability in apereo/phpcas. A fix is available for apereo/phpcas — see the affected versions and patch details below.
phpCAS client library and Moodle Cross-site Scripting vulnerability
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
apereo/phpcas🐘moodle/moodle🐘moodle/moodleReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | apereo/phpcas | all versions | 1.1.0composer require apereo/phpcas:^1.1.0 |
| 🐘Packagist | moodle/moodle | ≥ 1.8.0&&< 1.8.12 | 1.8.12composer require moodle/moodle:^1.8.12 |
| 🐘Packagist | moodle/moodle | ≥ 1.9.0&&< 1.9.8 | 1.9.8composer require moodle/moodle:^1.9.8 |
Affected Products
phpcas client libraryja-sigmoodlemoodleDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for apereo/phpcas, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update apereo/phpcas to 1.1.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2010-1618 is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Frequently Asked Questions
Is CVE-2010-1618 in your dependencies?
Find it across Packagist, including transitive dependencies.