CVE-2025-12758
CVE-2025-12758 is a high-severity vulnerability in Validator Project Validator with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-792.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- CVSS v4: 7.7
- EPSS exploit prediction: 0% (36th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-199795
- Weakness: CWE-792
- Affected product: Validator Project Validator
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2025-12758?
- 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.
- How severe is CVE-2025-12758?
- CVE-2025-12758 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity none, and availability high.
- Is CVE-2025-12758 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (36th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2025-12758?
- CVE-2025-12758 affects Validator Project Validator. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2025-12758?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2025-12758 have an EU (EUVD) identifier?
- Yes. CVE-2025-12758 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-199795.
- When was CVE-2025-12758 published?
- CVE-2025-12758 was published on 2025-11-27 and last updated on 2026-06-17.
References
- https://gist.github.com/koral--/ad31208b25b9e3d1e2e35f1d4d72572e
- https://github.com/validatorjs/validator.js/pull/2616
- https://security.snyk.io/vuln/SNYK-JS-VALIDATOR-13653476
- http://seclists.org/fulldisclosure/2026/Jan/27
Affected products (1)
- cpe:2.3:a:validator_project:validator:*:*:*:*:*:node.js:*:*
More vulnerabilities in Validator Project Validator
- CVE-2021-3765 — High (CVSS 7.5): validator.js is vulnerable to Inefficient Regular Expression Complexity
- CVE-2025-56200 — Medium (CVSS 6.1): A URL validation bypass vulnerability exists in validator.js through version 13.15.15. The isURL() function uses '://'…
All CVEs affecting Validator Project Validator →
Other CWE-792 vulnerabilities
- CVE-2023-25608 — Medium (CVSS 5.5): An incomplete filtering of one or more instances of special elements vulnerability [CWE-792] in the command line…
- CVE-2022-22297 — Medium (CVSS 5.5): An incomplete filtering of one or more instances of special elements vulnerability [CWE-792] in the command line…