CVE-2021-42567 is a medium-severity (CVSS 6.1) Cross-site Scripting (XSS) vulnerability in org.apereo.cas:cas-server-core-web. A fix is available for org.apereo.cas:cas-server-core-web — see the affected versions and patch details below.
Cross-site Scripting in Apereo CAS
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.apereo.cas:cas-server-core-webReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Apereo CAS through 6.4.1 allows XSS via POST requests sent to the REST API endpoints.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apereo.cas:cas-server-core-web | all versions | 6.4.2org.apereo.cas:cas-server-core-web:6.4.2 |
Affected Products
central authentication serviceapereoDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apereo.cas:cas-server-core-web, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apereo.cas:cas-server-core-web to 6.4.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-42567 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.
How to detect CVE-2021-42567
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2021-42567 -u https://target- Template
- Apereo CAS Cross-Site Scripting
- Severity
- medium
- Impact
- Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of a victim's browser, potentially leading to session hijacking, data theft, or defacement.
- Remediation
- Apply the latest security patches or updates provided by the vendor to mitigate this vulnerability.
Template by ProjectDiscovery nuclei-templates (pdteam), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2021-42567 in your dependencies?
Find it across Maven, including transitive dependencies.