CVE-2025-12758: Buffer Overflow

Published Nov 27, 2025
·
Updated

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 Software

3 affected componentsFixes available
validator validator<13.15.22
npm/validator<13.15.22
13.15.22
Validator Project Validator Node.js<13.15.22

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/validator to a version that resolves this vulnerability.

    Fixed in 13.15.22
  2. Upgrade

    Upgrade package validator to a version that resolves this vulnerability.

    Fixed in 13.15.22

Event History

Nov 27, 2025
CVE Published
via MITRE·05:00 AM
Data Sourced
via MITRE·05:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 AM
RemedyAffected Software
Advisory Published
via GitHub·06:31 AM
Data Sourced
via GitHub·06:31 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-12758?

CVE-2025-12758 is classified as a moderate severity vulnerability due to insufficient filtering of Unicode variation selectors.

2

How do I fix CVE-2025-12758?

To fix CVE-2025-12758, upgrade the validator package to version 13.15.22 or later.

3

What vulnerabilities does CVE-2025-12758 address?

CVE-2025-12758 addresses incomplete filtering of special elements in the isLength() function of the validator package.

4

Which versions of the validator package are affected by CVE-2025-12758?

Versions of the validator package prior to 13.15.22 are affected by CVE-2025-12758.

5

What impact does CVE-2025-12758 have on applications?

CVE-2025-12758 may lead to improper string length checking in applications, potentially causing security issues.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203