Improper Input Validation Affecting ecto package, versions <2.2.1


Severity

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

Start learning
  • Snyk IDSNYK-HEX-ECTO-1088059
  • published30 Mar 2021
  • disclosed27 Aug 2017
  • creditUnknown

Introduced: 27 Aug 2017

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

How to fix?

Upgrade ecto to version 2.2.1 or higher.

Overview

ecto is a toolkit for data mapping and language integrated query for Elixir.

Affected versions of this package are vulnerable to Improper Input Validation. Affected versions of ecto do raise an error when non-explicit nil comparisons are made (as opposed to being checked with is_nil). An attacker could pass a field as nil (e.g. a token field) and force the application to run a query it was not intended to.

CVSS Scores

version 3.1