{"answers":{"affected":"2 open source packages ship an affected version, including org.owasp.esapi:esapi.","exploited":"There is no known exploitation of GHSA-r68h-jhhj-9jvm in the wild and no public exploit code.","fix":"Upgrade org.owasp.esapi:esapi to 2.6.0.0 or later.","what":"GHSA-r68h-jhhj-9jvm is a vulnerability in org.owasp.esapi:esapi, published on 27 Nov 2023."},"fix_prompt":"Check this codebase for GHSA-r68h-jhhj-9jvm and fix it if it is affected.\n\nWhat it is: GHSA-r68h-jhhj-9jvm is a vulnerability in org.owasp.esapi:esapi, published on 27 Nov 2023. \nExploitation: There is no known exploitation of GHSA-r68h-jhhj-9jvm in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.owasp.esapi:esapi (Maven): affected all versions; fixed in 2.6.0.0\n- org.owasp.esapi:esapi (Maven): affected all versions; fixed in 2.6.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/GHSA-r68h-jhhj-9jvm/ (Markdown: https://insights.sbomify.com/GHSA-r68h-jhhj-9jvm/index.md)","id":"GHSA-r68h-jhhj-9jvm","markdown":"https://insights.sbomify.com/GHSA-r68h-jhhj-9jvm/index.md","name":"GHSA-r68h-jhhj-9jvm","record":{"aliases":[],"analysis":null,"analysis_generated_by":null,"assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\nThe `Validator.isValidSafeHTML` method can result in false negatives where it reports some input as safe (i.e., returns true), but really isn't, and using that same input as-is can in certain circumstances result in XSS vulnerabilities. Because this method cannot be fixed, it is being deprecated and will be removed in one years time from when this advisory is published. Full details may be found in [ESAPI Security Bulletin #12](https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin12.pdf).\n\nNote that all versions of ESAPI, that have this method (which dates back to at least the ESAPI 1.3 release more than 15 years ago) have this issue and it will continue to exist until we remove these two methods in a future ESAPI release.\n\n### Patches\nThere is no patch. We do not believe that it is possible to patch this pretentiously named method other then perhaps renaming it to something like Validator.mightThisBeValidSafeHTML to dissuade developers from using it.\n\n### Workarounds\nStop using this method. Note that `Validator.getValidSafeHTML` is believed to be safe to use with the default **antisamy-esapi.xml** AntiSamy policy file.\n\n### Why is no CVE being filed?\nWe outline the reasons in the section \"Why no CVE for this issue?\" in [ESAPI Security Bulletin #12](https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin12.pdf). If after reading that, if _you_ still want to file a CVE or this, knock yourself out.\n\n### References\n[CWE-79](https://cwe.mitre.org/data/definitions/79.html)\n[CWE-80](https://cwe.mitre.org/data/definitions/80.html)\n[ESAPI Security Bulletin #12](https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin12.pdf)\n\n### Final resolution\nThis GitHub Security Advisory should now be considered remediated in [ESAPI versions 2.6.0.0](https://github.com/ESAPI/esapi-java-legacy/releases/tag/esapi-2.6.0.0) and later as the deprecated methods have been removed from the ESAPI jar.","ecosystems":["Maven"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Validator.isValidSafeHTML is being deprecated and will be deleted from org.owasp.esapi:esapi in 1 year","id":"GHSA-r68h-jhhj-9jvm","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Maven","product":null,"products":[],"type":null,"year":"2023"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Maven","fixed":["2.6.0.0"],"introduced":["0"],"last_affected":[],"package":"org.owasp.esapi:esapi","purl":null,"source":"GHSA-r68h-jhhj-9jvm"},{"ecosystem":"Maven","fixed":["2.6.0.0"],"introduced":["0"],"last_affected":[],"package":"org.owasp.esapi:esapi","purl":"pkg:maven/org.owasp.esapi/esapi","source":"GHSA-r68h-jhhj-9jvm"}],"products":null,"published":"2023-11-27","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":null,"url":"https://insights.sbomify.com/GHSA-r68h-jhhj-9jvm/"}