CVE-2024-42816 FastAPI Admin cross-site scripting (XSS) vulnerability in the Create Product function

Medium 6.1 Published Updated

Attackers can execute arbitrary scripts via XSS in the Create Product function of fastapi-admin pro.

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
None listed

What is CVE-2024-42816?

CVE-2024-42816 is a medium-severity cross-site scripting vulnerability in n/a, published on 26 Aug 2024. 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

A cross-site scripting (XSS) vulnerability in the Create Product function of fastapi-admin pro v0.1.4 allows attackers to execute arbitrary web scripts or HTML via a crafted payload injected into the Product Name parameter.

Weakness: CWE-79

Which versions are affected by CVE-2024-42816?

3 open source packages ship an affected version, including fastapi-admin.

PackageAffectedFixed in
fastapi-admin PyPIAll versions to 0.1.4None
fastapi-admin PyPIAll versions to 0.1.4None
fastapi-admin PyPIAll versions to 0.1.4None

How do I fix CVE-2024-42816?

No fix has been published for CVE-2024-42816 yet. Limit exposure of the affected software until one is available.

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-2024-42816 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-42816 exists.

Sources

Also known as GHSA-22xm-w7r2-834q, PYSEC-2026-1356.

Is CVE-2024-42816 in your software?

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

Check your SBOMs for free