Advisory

GHSA-vghf-hv5q-vc2g

Also known as: CVE-2025-12758

Summary

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

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-11-27 06:31 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

validator

npm · All systems

Affected

  • introduced 0, fixed 13.15.22 (semver)

Fixed versions

13.15.22

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences