{"answers":{"affected":"2 open source packages ship an affected version, including org.owasp.esapi:esapi. It affects 4 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-24891 exists.","fix":"Upgrade org.owasp.esapi:esapi to 2.3.0.0 or later.","what":"CVE-2022-24891 is a medium-severity cross-site scripting vulnerability in Netapp Active Iq Unified Manager, published on 27 Apr 2022. 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-2022-24891 and fix it if it is affected.\n\nWhat it is: CVE-2022-24891 is a medium-severity cross-site scripting vulnerability in Netapp Active Iq Unified Manager, published on 27 Apr 2022. 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-2022-24891 exists.\n\nAffected packages and fixed versions:\n- org.owasp.esapi:esapi (Maven): affected all versions; fixed in 2.3.0.0\n- org.owasp.esapi:esapi (Maven): affected all versions; fixed in 2.3.0.0\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-2022-24891/ (Markdown: https://insights.sbomify.com/CVE-2022-24891/index.md)","id":"CVE-2022-24891","markdown":"https://insights.sbomify.com/CVE-2022-24891/index.md","name":"CVE-2022-24891","record":{"aliases":["DEBIAN-CVE-2022-24891","GHSA-q77q-vx4q-xx6q","UBUNTU-CVE-2022-24891"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Java security library","requires_auth":"none","summary":"Attackers can execute arbitrary scripts via unsanitized javascript URLs due to a flawed regex in the ESAPI library configuration.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"active_iq_unified_manager","vendor":"netapp"},{"product":"oncommand_workflow_automation","vendor":"netapp"},{"product":"weblogic_server","vendor":"oracle"},{"product":"enterprise_security_api","vendor":"owasp"}],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"ESAPI (The OWASP Enterprise Security API) is a free, open source, web application security control library. Prior to version 2.3.0.0, there is a potential for a cross-site scripting vulnerability in ESAPI caused by a incorrect regular expression for \"onsiteURL\" in the **antisamy-esapi.xml** configuration file that can cause \"javascript:\" URLs to fail to be correctly sanitized. This issue is patched in ESAPI 2.3.0.0. As a workaround, manually edit the **antisamy-esapi.xml** configuration files to change the \"onsiteURL\" regular expression. More information about remediation of the vulnerability, including the workaround, is available in the maintainers' release notes and security bulletin.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-08-17","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-08-17T14:58:21Z","kind":"github_poc","ref":"https://github.com/shoucheng3/ESAPI__esapi-java-legacy_CVE-2022-24891_2-2-3-1","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Cross-site Scripting in org.owasp.esapi:esapi -- antisamy-esapi.xml configuration file","id":"CVE-2022-24891","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"netapp:active_iq_unified_manager","products":["netapp:active_iq_unified_manager","netapp:oncommand_workflow_automation","oracle:weblogic_server"],"type":"xss","year":"2022"},"n_packages":2,"n_references":5,"next":{"headline":"Multiple valid tokens for password reset in Shopware","id":"CVE-2022-24892"},"packages":[{"ecosystem":"Maven","fixed":["2.3.0.0"],"introduced":["0"],"last_affected":[],"package":"org.owasp.esapi:esapi","purl":null,"source":"GHSA-q77q-vx4q-xx6q"},{"ecosystem":"Maven","fixed":["2.3.0.0"],"introduced":["0"],"last_affected":[],"package":"org.owasp.esapi:esapi","purl":"pkg:maven/org.owasp.esapi/esapi","source":"GHSA-q77q-vx4q-xx6q"}],"prev":{"headline":"Exposure of Private Personal Information to an Unauthorized Actor in Nextcloud Talk","id":"CVE-2022-24890"},"products":["esapi-java-legacy"],"published":"2022-04-27","related":[{"cvss_score":9.8,"headline":"Spring Security authorization rules can be bypassed via forward or include dispatcher types","id":"CVE-2022-31692","kev_date_added":null,"published":"2022-10-31"},{"cvss_score":9.8,"headline":"Use after free in systemd-resolved","id":"CVE-2022-2526","kev_date_added":null,"published":"2022-09-09"},{"cvss_score":9.8,"headline":"Authorization bypass in Spring Security","id":"CVE-2022-22978","kev_date_added":null,"published":"2022-05-19"},{"cvss_score":9.8,"headline":"Code injection in Node","id":"CVE-2021-22931","kev_date_added":null,"published":"2021-08-16"},{"cvss_score":9,"headline":"Code injection in Java","id":"CVE-2018-2938","kev_date_added":null,"published":"2018-07-18"},{"cvss_score":8.3,"headline":"Code injection in Java","id":"CVE-2018-2941","kev_date_added":null,"published":"2018-07-18"},{"cvss_score":8.3,"headline":"Code injection in Java","id":"CVE-2018-2942","kev_date_added":null,"published":"2018-07-18"}],"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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["ESAPI"]},"summary":"Attackers can execute arbitrary scripts via unsanitized javascript URLs due to a flawed regex in the ESAPI library configuration.","url":"https://insights.sbomify.com/CVE-2022-24891/"}