Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1yNjhoLWpoaGotOWp2bc4AA3Xs

Validator.isValidSafeHTML is being deprecated and will be deleted from org.owasp.esapi:esapi in 1 year

Impact

The 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.

Note 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.

Patches

There 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.

Workarounds

Stop using this method. Note that Validator.getValidSafeHTML is believed to be safe to use with the default antisamy-esapi.xml AntiSamy policy file.

Why is no CVE being filed?

We outline the reasons in the section "Why no CVE for this issue?" in ESAPI Security Bulletin #12. If after reading that, if you still want to file a CVE or this, knock yourself out.

References

CWE-79
CWE-80
ESAPI Security Bulletin #12

Permalink: https://github.com/advisories/GHSA-r68h-jhhj-9jvm
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1yNjhoLWpoaGotOWp2bc4AA3Xs
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: 5 months ago
Updated: 5 months ago


Identifiers: GHSA-r68h-jhhj-9jvm
References: Repository: https://github.com/ESAPI/esapi-java-legacy
Blast Radius: 0.0

Affected Packages

maven:org.owasp.esapi:esapi
Dependent packages: 106
Dependent repositories: 1,483
Downloads:
Affected Version Ranges: <= 2.5.3.0
No known fixed version
All affected versions: