{"answers":{"affected":"2 open source packages ship an affected version, including org.apereo.cas:cas-server-core-web. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-42567 exists.","fix":"Upgrade org.apereo.cas:cas-server-core-web to 6.4.2 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2021-42567 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-42567 exists.\n\nAffected packages and fixed versions:\n- org.apereo.cas:cas-server-core-web (Maven): affected all versions; fixed in 6.4.2\n- org.apereo.cas:cas-server-core-web (Maven): affected all versions; fixed in 6.4.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-42567/ (Markdown: https://insights.sbomify.com/CVE-2021-42567/index.md)","id":"CVE-2021-42567","markdown":"https://insights.sbomify.com/CVE-2021-42567/index.md","name":"CVE-2021-42567","record":{"aliases":["GHSA-gfhx-jjwq-63gv"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Apereo CAS","requires_auth":"none","summary":"Cross-site scripting in Apereo CAS REST API allows attackers to execute scripts in user sessions, potentially leading to account takeover.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"central_authentication_service","vendor":"apereo"}],"cvss":{"score":6.1,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Apereo CAS through 6.4.1 allows XSS via POST requests sent to the REST API endpoints.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-42567.yaml","stars":null,"title":"Apereo CAS Cross-Site Scripting"}],"tier":"weaponised"},"has_fix":true,"headline":"Cross-site Scripting in Apereo CAS","id":"CVE-2021-42567","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2021"},"n_packages":2,"n_references":2,"next":{"headline":"Missing authorization in n/a","id":"CVE-2021-42568"},"packages":[{"ecosystem":"Maven","fixed":["6.4.2"],"introduced":["0"],"last_affected":[],"package":"org.apereo.cas:cas-server-core-web","purl":null,"source":"GHSA-gfhx-jjwq-63gv"},{"ecosystem":"Maven","fixed":["6.4.2"],"introduced":["0"],"last_affected":[],"package":"org.apereo.cas:cas-server-core-web","purl":"pkg:maven/org.apereo.cas/cas-server-core-web","source":"GHSA-gfhx-jjwq-63gv"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-42566"},"products":["n/a"],"published":"2021-12-07","related":[{"cvss_score":9.8,"headline":"MFA bypass in Apereo CAS","id":"CVE-2023-4612","kev_date_added":null,"published":"2023-11-09"},{"cvss_score":9.1,"headline":"CAS \u003c= 1.0.0 - Unauthenticated SSRF","id":"CVE-2024-4399","kev_date_added":null,"published":"2024-05-23"},{"cvss_score":8.1,"headline":"Use of Insufficiently Random Values in Apereo CAS","id":"CVE-2019-10754","kev_date_added":null,"published":"2019-09-23"},{"cvss_score":7.5,"headline":"Improper Authentication in Apereo CAS","id":"CVE-2020-27178","kev_date_added":null,"published":"2020-10-16"},{"cvss_score":7.5,"headline":"Auth bypass in n/a","id":"CVE-2015-1169","kev_date_added":null,"published":"2015-02-10"},{"cvss_score":6.3,"headline":"Apereo CAS login session expiration","id":"CVE-2024-11208","kev_date_added":null,"published":"2024-11-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Cross-site scripting in Apereo CAS REST API allows attackers to execute scripts in user sessions, potentially leading to account takeover.","url":"https://insights.sbomify.com/CVE-2021-42567/"}