Buffer Overflow Affecting validator package, versions <5.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Buffer Overflow vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDnpm:validator:20160218
  • published18 Feb 2018
  • disclosed18 Feb 2016
  • creditGuillaume Leclerc

Introduced: 18 Feb 2016

CVE NOT AVAILABLE CWE-185  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

Upgrade validator to version 5.0.0 or higher.

Overview

validator is a library of string validators and sanitizers.

Affected versions of this package are vulnerable to Buffer Overflow. It used a regular expression (/^(?:[A-Z0-9+\/]{4})*(?:[A-Z0-9+\/]{2}==|[A-Z0-9+\/]{3}=|[A-Z0-9+\/]{4})$/i) in order to validate Base64 strings.

CVSS Scores

version 3.1