GHSA-r68h-jhhj-9jvm

Suggest an improvement
Source
https://github.com/advisories/GHSA-r68h-jhhj-9jvm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/11/GHSA-r68h-jhhj-9jvm/GHSA-r68h-jhhj-9jvm.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-r68h-jhhj-9jvm
Published
2023-11-27T17:25:46Z
Modified
2024-12-07T05:34:33.310169Z
Summary
Validator.isValidSafeHTML is being deprecated and will be deleted from org.owasp.esapi:esapi in 1 year
Details

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

Final resolution

This GitHub Security Advisory should now be considered remediated in ESAPI versions 2.6.0.0 and later as the deprecated methods have been removed from the ESAPI jar.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-11-27T17:25:46Z"
}
References

Affected packages

Maven / org.owasp.esapi:esapi

Package

Name
org.owasp.esapi:esapi
View open source insights on deps.dev
Purl
pkg:maven/org.owasp.esapi/esapi

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.6.0.0

Affected versions

2.*

2.0GA
2.0_rc9
2.0_rc10
2.0_rc11
2.0.1
2.1.0
2.1.0.1
2.2.0.0-RC2
2.2.0.0-RC3
2.2.0.0
2.2.1.0-RC1
2.2.1.0
2.2.1.1
2.2.2.0
2.2.3.0
2.2.3.1
2.3.0.0
2.4.0.0
2.5.0.0
2.5.1.0
2.5.2.0
2.5.3.0
2.5.3.1
2.5.4.0
2.5.5.0