Skip to main content
EPSS 0.5%top 58%

CVE-2025-12758: Incomplete Filtering of One or More Instances of Special Elements in validator

0
High
VulnerabilityCVE-2025-12758cvecve-2025-12758gcvecwe-172
Published: 11/27/2025 (11/27/2025, 05:00:01 UTC)
Source: CVE Database V5
Product: validator

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.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P

Affected software

validator
pkg:npm/validator
Affected versions
=0<13.15.22

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/09/2026, 12:57:21 UTC

Technical Analysis

CVE-2025-12758 affects the validator package prior to version 13.15.22. The vulnerability arises from incomplete filtering of special Unicode variation selectors (\uFE0F, \uFE0E) in the isLength() function. This flaw causes the function to miscalculate string lengths, allowing applications relying on isLength for input validation to accept strings significantly longer than expected. The improper length validation can result in downstream impacts such as database data truncation, buffer overflows in other system components, or denial-of-service scenarios.

Potential Impact

Applications using the vulnerable versions of validator for input length validation may accept longer strings than intended, leading to potential data truncation in databases, buffer overflow vulnerabilities in other components, or denial-of-service conditions. This can compromise application stability and data integrity.

Mitigation Recommendations

A fix is available in validator version 13.15.22. Users should upgrade to version 13.15.22 or later to address this vulnerability. Patch status is confirmed by the versioning information indicating versions before 13.15.22 are affected.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
snyk
Date Reserved
2025-11-05T16:10:29.370Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6927e863bdf69728cfecb8dd

Added to database: 11/27/2025, 05:57:55 UTC

Last enriched: 08/09/2026, 12:57:21 UTC

Last updated: 09/10/2026, 19:36:49 UTC

Views: 965

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses