Improper Input Validation Affecting org.webjars.npm:nanoid package, versions [,3.3.8)[4.0.0,5.0.9)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.05% (18th percentile)

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 Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGWEBJARSNPM-8515911
  • published17 Dec 2024
  • disclosed9 Dec 2024
  • creditKris Reeves

Introduced: 9 Dec 2024

NewCVE-2024-55565  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade org.webjars.npm:nanoid to version 3.3.8, 5.0.9 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation due to the mishandling of fractional values in the nanoid function. By exploiting this vulnerability, an attacker can achieve an infinite loop.

CVSS Scores

version 4.0
version 3.1