Skip to main content
← All vulnerabilities
CVE-2025-12758GHSA-VGHF-HV5Q-VC2G

Versions of the package validator before 13.15.22 are vulnerable to Incomplete Filtering of One or More Instances of Special Elements in the

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 13.15.22
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a validator

    fixed in 13.15.22

  • n/a org.webjars.npm:validator

    fixed in 13.15.22

  • validatornpm

    fixed in 13.15.22

References 5

security.snyk.io

gist.github.com

GitHub · validatorjs/validator.js

GitHub · open-flaw/CVE-2025-12758