Validator Incomplete Unicode Length Validation Vulnerability Allowing Excessive String Lengths

Vulnerability

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.

Impact

Exploitation of this vulnerability can cause applications to accept overly long strings, potentially leading to data management issues, memory corruption through buffer overflows, or service disruptions.

Reproduction

The vulnerability can be reproduced by using the 'validator' package version prior to 13.15.22 and calling the 'isLength()' function with a string that includes multiple Unicode variation selectors. The function will incorrectly validate the string length, allowing it to pass checks that it should not.

Remediation

Users are advised to upgrade the 'validator' package to version 13.15.22 or higher.

Added: Nov 27, 2025, 5:24 AM
Updated: Nov 27, 2025, 5:24 AM

Vulnerability Rating

Custom Algorithm
spread
7.8
impact
7.5
exploitability
6.0
remediation
7.7
relevance
1.3
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.