Packages / validator / Security
Validator is Vulnerable to Incomplete Filtering of One or More Instances of Special Elements
Affected releases · validator
- 13.x13.0.0 – 13.15.20Fixed in 13.15.22
- 12.x and older0.1.0 – 12.2.0No fix, no longer updated
On 13.x, the newest line:
npm install validator@13.15.22Every release on a timeline
Affected
13.0.0 – 13.15.20
15 releases
Fixed
13.15.22 – 13.15.35
4 releases, latest
Affected
12.0.0 – 12.2.0
3 releases
Affected
11.0.0 – 11.1.0
2 releases
Affected
10.0.0 – 10.11.0
13 releases
Affected
9.0.0 – 9.4.1
8 releases
Affected
8.0.0 – 8.2.0
3 releases
Affected
7.0.0 – 7.2.0
3 releases
Affected
6.0.0 – 6.3.0
5 releases
Affected
5.0.0 – 5.7.0
8 releases
Affected
4.0.0 – 4.9.0
21 releases
Affected
3.0.0 – 3.43.0
59 releases
Affected
2.0.0 – 2.1.0
2 releases
Affected
1.0.0 – 1.5.1
12 releases
Affected
0.1.0 – 0.5.0
57 releases
What happens
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.