CVE-2021-40926 Cross-site scripting in demos/demo.mysqli.php in getID3
Remote attackers can inject arbitrary web script or HTML via the showtagfiles parameter in the getID3 library demo script.
- 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-2021-40926?
CVE-2021-40926 is a medium-severity cross-site scripting vulnerability in n/a, published on 1 Oct 2021. 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
Cross-site scripting (XSS) vulnerability in demos/demo.mysqli.php in getID3 1.X and v2.0.0-beta allows remote attackers to inject arbitrary web script or HTML via the showtagfiles parameter.
Weakness: CWE-79
Which versions are affected by CVE-2021-40926?
2 open source packages ship an affected version, including james-heinrich/getid3. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
james-heinrich/getid3 Packagist | From 1.0.0 | 1.9.21 |
james-heinrich/getid3 Packagist | From 1.0.0 | 1.9.21 |
Products include Getid3 Getid3.
How do I fix CVE-2021-40926?
Upgrade james-heinrich/getid3 to 1.9.21 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-2021-40926 being exploited?
There is no known exploitation of CVE-2021-40926 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2021-40926, GHSA-x2gw-85w6-fjjw, UBUNTU-CVE-2021-40926.