Vulnerabilities in pkg:pypi/django-ajax-utilities

PACKAGE
Advisory Identifier: GHSA-p4g9-c9qr-wmg5
Advisory Summary

CVE-2017-20182 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Django ajax utilities libraries in the PyPI ecosystem. The issue involves cross-site scripting in django-ajax-utilities. Remediation is available by upgrading affected packages to version 1.2.8.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/django-ajax-utilities

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/django-ajax-utilities. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-p4g9-c9qr-wmg5 CVE-2017-20182 MODERATE Cross-site Scripting in django-ajax-utilities

CVE-2017-20182 at a Glance

CVE Identifier CVE-2017-20182
GHSA Identifier GHSA-p4g9-c9qr-wmg5
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Django ajax utilities
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2017-20182

To remediate this vulnerability, upgrade all affected Django ajax utilities dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

django-ajax-utilities fixed: 1.2.8
pip install django-ajax-utilities>=1.2.8
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show django-ajax-utilities

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2017-20182, inspect your installed packages using pip:

pip show django-ajax-utilities

Analyze the terminal output to locate any version of Django ajax utilities in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.8), your application is affected.

Note: The pip show django-ajax-utilities command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Django ajax utilities, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A vulnerability was found in Mobile Vikings Django AJAX Utilities and classified as problematic. This issue affects the function Pagination of the file django_ajax/static/ajax-utilities/js/pagination.js of the component Backslash Handler. The manipulation of the argument url leads to cross site scripting. The attack may be initiated remotely. The patch is on commit 329eb1dd1580ca1f9d4f95bc69939833226515c9 which has been inclused in release 1.2.8. It is recommended to apply a patch to fix this issue. The associated identifier of this vulnerability is VDB-222611.

CVE-2017-20182 Affected Django ajax utilities Versions

1 component(s)
Fixed Versions:
1.2.8
Product / Package Ecosystem Affected Versions Fixed Version
django-ajax-utilities
PyPI
< 1.2.8
1.2.8

References

Frequently Asked Questions

What is CVE-2017-20182?
CVE-2017-20182 is a security vulnerability in Django ajax utilities involving Cross-site Scripting in django-ajax-utilities under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Django ajax utilities versions are affected?
Affected versions include releases prior to 1.2.8 across affected packages: django-ajax-utilities.
What version fixes CVE-2017-20182?
Upgrading to 1.2.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is django-ajax-utilities affected?
Yes, django-ajax-utilities is affected in releases prior to 1.2.8. Upgrade your dependency to 1.2.8 or later.
What is the CVSS score of CVE-2017-20182?
CVE-2017-20182 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2017-20182?
CVE-2017-20182 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check PyPI dependencies for CVE-2017-20182?
Run the dependency tree command: 'pip show django-ajax-utilities'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-p4g9-c9qr-wmg5",
  "modified" : "2023-10-20T22:48:27Z",
  "published" : "2023-03-10T03:30:15Z",
  "aliases" : [ "CVE-2017-20182" ],
  "summary" : "Cross-site Scripting in django-ajax-utilities",
  "details" : "A vulnerability was found in Mobile Vikings Django AJAX Utilities and classified as problematic. This issue affects the function Pagination of the file django_ajax/static/ajax-utilities/js/pagination.js of the component Backslash Handler. The manipulation of the argument url leads to cross site scripting. The attack may be initiated remotely. The patch is on commit  329eb1dd1580ca1f9d4f95bc69939833226515c9 which has been inclused in release 1.2.8. It is recommended to apply a patch to fix this issue. The associated identifier of this vulnerability is VDB-222611.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "django-ajax-utilities"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-20182"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mvpoland/django-ajax-utilities/commit/329eb1dd1580ca1f9d4f95bc69939833226515c9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vikingco/django-ajax-utilities/commit/329eb1dd1580ca1f9d4f95bc69939833226515c9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mvpoland/django-ajax-utilities"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.222611"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.222611"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-03-16T13:26:21Z",
    "nvd_published_at" : "2023-03-10T02:15:00Z"
  }
}