Vulnerability · Published Nov 27, 2025 · Assigned by snyk

CVE-2025-12758

High 7.5

In plain English

A high-severity security flaw in org.webjars.npm:validator. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 46% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.6%top 53.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official 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. 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmvalidator13.15.22GHSA-vghf-hv5q-vc2g

Affected products (as reported)

VendorProductVersions
n/a validator 0 – before 13.15.22
n/a org.webjars.npm:validator 0 – before 13.15.22

Weakness: CWE-792, CWE-172 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P

References