Media

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

  • Publicada: 27.11.2023
  • Actualizado: 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.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Java / Kotlin (Maven) org.owasp.esapi:esapi < 2.6.0.0 2.6.0.0

Referencias

Puntuación CVSS -
Debilidad (CWE)
-
Plataforma
Java / Kotlin (Maven)
Paquete
org.owasp.esapi:esapi
Publicada
27.11.2023
Actualizado
11.10.2026 12:21

Fuentes y licencias

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

Historial de vulnerabilidades: org.owasp.esapi:esapi

Todas las vulnerabilidades publicadas de este paquete (Java / Kotlin (Maven)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Entradas en total
7
Primera → última
08.2021 11.2023
Sin corrección
0
Explotada en ataques
0

Distribución por gravedad

  • Alta 2
  • Media 4
  • Baja 1

Divulgaciones por año

  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 esta entrada
    Media ghsa-r68h-jhhj-9jvm < 2.6.0.0 2.6.0.0
  2. Media CVE-2013-5960 >= 2.0.0.0, < 2.1.0.1 2.1.0.1
  3. Media · 6.1 CVE-2022-24891 < 2.3.0.0 2.3.0.0
  4. Alta · 7.5 CVE-2022-23457 < 2.3.0.0 2.3.0.0
  5. Media · 5.9 CVE-2010-3300 < 2.0GA 2.0GA

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.