CVE-2021-42567 Cross-site Scripting in Apereo CAS
Cross-site scripting in Apereo CAS REST API allows attackers to execute scripts in user sessions, potentially leading to account takeover.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-42567?
CVE-2021-42567 is a medium-severity cross-site scripting vulnerability in n/a, published on 7 Dec 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Apereo CAS through 6.4.1 allows XSS via POST requests sent to the REST API endpoints.
Weakness: CWE-79
Which versions are affected by CVE-2021-42567?
2 open source packages ship an affected version, including org.apereo.cas:cas-server-core-web. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apereo.cas:cas-server-core-web Maven | All versions | 6.4.2 |
org.apereo.cas:cas-server-core-web Maven | All versions | 6.4.2 |
Products include Apereo Central Authentication Service.
How do I fix CVE-2021-42567?
Upgrade org.apereo.cas:cas-server-core-web to 6.4.2 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-42567 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-42567 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in n/a
Sources
Also known as GHSA-gfhx-jjwq-63gv.