Mittel

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

  • Veröffentlicht: 27.11.2023
  • Aktualisiert: 11.10.2026 12:21

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.

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
Java / Kotlin (Maven) org.owasp.esapi:esapi < 2.6.0.0 2.6.0.0

Verweise

CVSS-Wert -
Schwäche (CWE)
-
Plattform
Java / Kotlin (Maven)
Paket
org.owasp.esapi:esapi
Veröffentlicht
27.11.2023
Aktualisiert
11.10.2026 12:21

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-r68h-jhhj-9jvm - CC BY 4.0

Schwachstellenhistorie: org.owasp.esapi:esapi

Alle veröffentlichten Schwachstellen dieses Pakets (Java / Kotlin (Maven)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Einträge insgesamt
7
Erste → letzte
08.2021 11.2023
Ohne Fix
0
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Hoch 2
  • Mittel 4
  • Niedrig 1

Veröffentlichungen pro Jahr

  1. 2021: 1
  2. 2022: 4
  3. 2023: 2
  4. 2024: 0
  5. 2025: 0
  6. 2026: 0
  1. Validator.isValidSafeHTML is being deprecated and will be deleted from org.owasp.esapi:esapi in 1 year dieser Eintrag
    Mittel ghsa-r68h-jhhj-9jvm < 2.6.0.0 2.6.0.0
  2. Niedrig CVE-2013-5679 >= 2.0.0, < 2.1.0 2.1.0
  3. Mittel CVE-2013-5960 >= 2.0.0.0, < 2.1.0.1 2.1.0.1
  4. Mittel · 6.1 CVE-2022-24891 < 2.3.0.0 2.3.0.0
  5. Hoch · 7.5 CVE-2022-23457 < 2.3.0.0 2.3.0.0
  6. Mittel · 5.9 CVE-2010-3300 < 2.0GA 2.0GA

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.