SQL Injection Affecting bandit package, versions [,1.7.7)


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 SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-BANDIT-6241859
  • published12 Feb 2024
  • disclosed1 Feb 2024
  • creditUnknown

Introduced: 1 Feb 2024

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

How to fix?

Upgrade bandit to version 1.7.7 or higher.

Overview

bandit is a Security oriented static analyser for python code.

Affected versions of this package are vulnerable to SQL Injection due to using the str.replace method as a potential risk which, potentially enables the execution of arbitrary SQL code.

CVSS Base Scores

version 3.1