CVE-2025-12758 Details
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.
A vulnerability exists in the 'validator' package, specifically in versions prior to 13.15.22, within the 'isLength()' function. This vulnerability arises from improper handling of Unicode variation selectors, which can be exploited to bypass maximum length restrictions. As a result, applications may accept strings that are significantly longer than intended. This flaw can lead to various issues, such as data truncation in databases, buffer overflows in other system components, or denial-of-service conditions.
Users are advised to upgrade the 'validator' package to version 13.15.22 or higher.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://security.snyk.io/vuln/SNYK-JS-VALIDATOR-13653476 | CISA-ADP | ExploitThird Party Advisory |
| http://seclists.org/fulldisclosure/2026/Jan/27 | CVE | |
| https://gist.github.com/koral--/ad31208b25b9e3d1e2e35f1d4d72572e | [email protected] | ExploitThird Party Advisory |
| https://github.com/validatorjs/validator.js/pull/2616 | [email protected] | Issue TrackingPatch |
| https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-14152011 | [email protected] | |
| https://security.snyk.io/vuln/SNYK-JS-VALIDATOR-13653476 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-172 | Encoding Error | CISA-ADP |
| CWE-792 | Incomplete Filtering of One or More Instances of Special Elements | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| validator project validator | < 13.15.22 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jul 14, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 29, 2026 | CVE Modified | CVE |
| Dec 30, 2025 | Initial Analysis | [email protected] |
| Dec 3, 2025 | CVE Modified | CISA-ADP |
| Nov 27, 2025 | New CVE Received | [email protected] |