Validator is Vulnerable to Incomplete Filtering of One or More Instances of Special Elements
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | validator | < 13.15.22 | 13.15.22 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-12758
- https://github.com/validatorjs/validator.js/pull/2616
- https://github.com/validatorjs/validator.js/commit/d457ecaf55b0f3d8bd379d82757425d0d13dd382
- https://gist.github.com/koral--/ad31208b25b9e3d1e2e35f1d4d72572e
- https://github.com/validatorjs/validator.js
- https://security.snyk.io/vuln/SNYK-JS-VALIDATOR-13653476
- http://seclists.org/fulldisclosure/2026/Jan/27
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Weakness (CWE)
CWE-172, CWE-792- Platform
- npm
- Package
validator- Disclosed
- 27.11.2025
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-vghf-hv5q-vc2g - CC BY 4.0
Vulnerability history: validator
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 10
- First → latest
- 10.2017 11.2025
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 2
- Medium 8
Disclosures per year
- 2017: 4
- 2018: 1
- 2019: 0
- 2020: 1
- 2021: 2
- 2022: 0
- 2023: 0
- 2024: 0
- 2025: 2
- 2026: 0
-
Validator is Vulnerable to Incomplete Filtering of One or More Instances of Special Elements this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.