Vulnerabilities/

Validator is Vulnerable to Incomplete Filtering of One or More Instances of Special Elements

Severity:
High

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.

Recommendation

Update the validator package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
validator
Anything's wrong? Let us know Last updated on January 31, 2026