SQL Injection Affecting django-pghistory package, versions [,2.6.0)


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-DJANGOPGHISTORY-5425047
  • published26 Apr 2024
  • disclosed16 Apr 2023
  • creditUnknown

Introduced: 16 Apr 2023

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

How to fix?

Upgrade django-pghistory to version 2.6.0 or higher.

Overview

django-pghistory is a history tracking library for Django and Postgres

Affected versions of this package are vulnerable to SQL Injection when processing context data in the _inject_history_context() function in runtime.py.

References

CVSS Scores

version 3.1