Vulnerabilities in pkg:pypi/Flask-Admin
PACKAGECVE-2018-16516 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Flask Admin libraries in the PyPI ecosystem. The issue involves flask-admin cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 1.5.3.
pkg:pypi/Flask-Admin
Vulnerability advisories affecting package pkg:pypi/Flask-Admin. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-894g-6j7q-2hx6 | CVE-2018-16516 | MODERATE | Flask-Admin Cross-site Scripting vulnerability |
CVE-2018-16516 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.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2018-16516
To remediate this vulnerability, upgrade all affected Flask Admin 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 Flask-Admin>=1.5.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show Flask-Admin
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2018-16516, inspect your installed packages using pip:
pip show Flask-Admin
Analyze the terminal output to locate any version of Flask Admin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.3), your application is affected.
Note: The pip show Flask-Admin 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 Flask Admin, 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-2018-16516 Affected Flask Admin Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Flask-Admin
|
PyPI |
< 1.5.3
|
1.5.3
|
References
Frequently Asked Questions
What is CVE-2018-16516?
Which Flask Admin versions are affected?
What version fixes CVE-2018-16516?
Is Flask-Admin affected?
What is the CVSS score of CVE-2018-16516?
What CWE is associated with CVE-2018-16516?
How can I check PyPI dependencies for CVE-2018-16516?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-894g-6j7q-2hx6",
"modified" : "2024-09-20T17:45:11Z",
"published" : "2018-12-19T19:23:52Z",
"aliases" : [ "CVE-2018-16516" ],
"summary" : "Flask-Admin Cross-site Scripting vulnerability",
"details" : "helpers.py in Flask-Admin 1.5.2 has Reflected XSS via a crafted URL.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "Flask-Admin"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.5.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-16516"
}, {
"type" : "WEB",
"url" : "https://github.com/flask-admin/flask-admin/pull/1699"
}, {
"type" : "WEB",
"url" : "https://github.com/flask-admin/flask-admin/commit/8af10e0b022464fdcb2da3d0ea5bbd2f11c0acd1"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-894g-6j7q-2hx6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/flask-admin/flask-admin"
}, {
"type" : "WEB",
"url" : "https://github.com/flask-admin/flask-admin/releases/tag/v1.5.3"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/flask-admin/PYSEC-2018-54.yaml"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UJIYCWIH3BRLI2QNC53CQXLKVP27X7EH"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZU2VKULURVXEU4YFTLMBQGYMPSXQ4MBN"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:24:59Z",
"nvd_published_at" : null
}
}