# CVE-2025-12758: Validator is Vulnerable to Incomplete Filtering of One or More Instances of Special Elements

- Severity: High 8.7 (CVSS:4.0, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.84%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-11-27T05:00:01.916Z
- Modified: 2026-10-19T13:10:00.110Z
- Also known as: GHSA-vghf-hv5q-vc2g
- Weaknesses: CWE-172, CWE-792
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- validator: before 13.15.22
- org.webjars.npm:validator: before 13.15.22
- validator (npm): before 13.15.22
- validator_project validator: before 13.15.22

## Every score

- snyk: CVSS:4.0 8.7 High `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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`

## References

- <https://security.snyk.io/vuln/SNYK-JS-VALIDATOR-13653476> (exploit, third-party-advisory, web)
- <https://gist.github.com/koral--/ad31208b25b9e3d1e2e35f1d4d72572e> (exploit, third-party-advisory, web)
- <https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-14152011>
- <https://github.com/validatorjs/validator.js/pull/2616> (issue-tracking, patch, web)
- <http://seclists.org/fulldisclosure/2026/Jan/27> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-12758> (advisory)
- <https://github.com/validatorjs/validator.js/commit/d457ecaf55b0f3d8bd379d82757425d0d13dd382> (web)
- <https://github.com/validatorjs/validator.js> (package)

## Sources

- CVE List: [CVE-2025-12758](https://www.cve.org/CVERecord?id=CVE-2025-12758), CVE Terms of Use, modified 2026-08-08
- GitHub Advisory Database: [GHSA-vghf-hv5q-vc2g](https://github.com/advisories/GHSA-vghf-hv5q-vc2g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-12758](https://nvd.nist.gov/vuln/detail/CVE-2025-12758), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-12758 · Whole record: https://cve.day/CVE-2025-12758.json · Rebuilt by cve.day 2026-11-25T22:59:08.060Z
