8.7high
Validator is Vulnerable to Incomplete Filtering of One or More Instances of Special Elements
- Severity
- 8.7high CVSS:4.0 by snyk
- Exploit likelihood
- 0.84% (higher than 58% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-vghf-hv5q-vc2g
Description
Versions of the package validator before 13.15.22 are vulnerable to Incomplete Filtering of One or More Instances of Special Elements in the isLength() function that does not take into account Unicode variation selectors (\uFE0F, \uFE0E) appearing in a sequence which lead to improper string length calculation. This can lead to an application using isLength for input validation accepting strings significantly longer than intended, resulting in issues like data truncation in databases, buffer overflows in other system components, or denial-of-service.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| validator | before 13.15.22 | CVE List |
| org.webjars.npm:validator | before 13.15.22 | CVE List |
| validator (npm) | before 13.15.22 | GitHub Advisory Database |
| validator_project validator | before 13.15.22 | NVD |
All scores
| snyk | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P |
| snyk | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Classification
What each source says
CVE List
Versions of the package validator before 13.15.22 are vulnerable to Incomplete Filtering of One or More Instances of Special Elements in the isLength() function that does not take into account Unicode variation selectors (\uFE0F, \uFE0E) appearing in a sequence which lead to improper string length calculation. This can lead to an application using isLength for input validation accepting strings significantly longer than intended, resulting in issues like data truncation in databases, buffer overflows in other system components, or denial-of-service.
NVD (es)
Versiones del paquete validador anteriores a la 13.15.22 son vulnerables a un Filtrado Incompleto de Una o Más Instancias de Elementos Especiales en la función isLength() que no tiene en cuenta los selectores de variación Unicode (\uFE0F, \uFE0E) que aparecen en una secuencia, lo que lleva a un cálculo incorrecto de la longitud de la cadena. Esto puede llevar a que una aplicación que utiliza isLength para la validación de entrada acepte cadenas significativamente más largas de lo previsto, lo que resulta en problemas como truncamiento de datos en bases de datos, desbordamientos de búfer en otros componentes del sistema o denegación de servicio.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-12758 changed 2026-08-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vghf-hv5q-vc2g changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-12758 changed 2026-10-19 | Public domain |