Vulnerabilities in pkg:pypi/django-ajax-utilities
PACKAGECVE-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.
pkg:pypi/django-ajax-utilities
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
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).
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.
pip install django-ajax-utilities>=1.2.8
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
CVE-2017-20182 Affected Django ajax utilities Versions
1 component(s)| 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?
Which Django ajax utilities versions are affected?
What version fixes CVE-2017-20182?
Is django-ajax-utilities affected?
What is the CVSS score of CVE-2017-20182?
What CWE is associated with CVE-2017-20182?
How can I check PyPI dependencies for CVE-2017-20182?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}