CVE-2018-16516 Flask-Admin Cross-site Scripting vulnerability

Medium 6.1 Published Updated

Reflected XSS in Flask-Admin allows attackers to execute arbitrary scripts in victim browsers via crafted URLs.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-16516?

CVE-2018-16516 is a medium-severity cross-site scripting vulnerability in n/a, published on 5 Sep 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

helpers.py in Flask-Admin 1.5.2 has Reflected XSS via a crafted URL.

Weakness: CWE-79

Which versions are affected by CVE-2018-16516?

3 open source packages ship an affected version, including flask-admin and Flask-Admin. It affects 1 product.

PackageAffectedFixed in
flask-admin PyPIAll versions1.5.3
flask-admin PyPIAll versions1.5.3
Flask-Admin PyPIAll versions1.5.3

Products include Flask-Admin Project Flask-Admin.

How do I fix CVE-2018-16516?

Upgrade flask-admin to 1.5.3 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2018-16516 being exploited?

There is no known exploitation of CVE-2018-16516 in the wild and no public exploit code.

Sources

Also known as GHSA-894g-6j7q-2hx6, PYSEC-2018-54.

Is CVE-2018-16516 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free