CVE-2025-12758
JSON

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 packageVersionsReported by
validatorbefore 13.15.22CVE List
org.webjars.npm:validatorbefore 13.15.22CVE List
validator (npm)before 13.15.22GitHub Advisory Database
validator_project validatorbefore 13.15.22NVD

All scores

snyk8.7high CVSS:4.0CVSS: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
snyk7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHubhigh CVSS:4.0CVSS: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

CWE-172CWE-792

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

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

SourceRecordLicence
CVE ListCVE-2025-12758 changed 2026-08-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-vghf-hv5q-vc2g changed 2026-09-10CC-BY-4.0
NVDCVE-2025-12758 changed 2026-10-19Public domain