Cross-Site Scripting (XSS) Vulnerability in php-getid3

php-getid3 Updated 02 Oct 2025

Summary

01/10/2021
N/A
No i
Medium
6.1

CVE-2021-40926: 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. Affects php-getid3 versions 1.9.20+dfsg-1 – 2.0.0~beta6+dfsg-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

php-getid3 is a PHP script that extracts metadata from audio and video files. It is commonly used in web applications to retrieve information about media files. However, a vulnerability has been discovered in the script that allows remote attackers to inject arbitrary web script or HTML. This vulnerability can be exploited through the 'showtagfiles' parameter in the 'demos/demo.mysqli.php' file.

Vulnerability Detail

The vulnerability, identified as CVE-2021-40926, is a cross-site scripting (XSS) vulnerability. It occurs due to insufficient input sanitization in the 'showtagfiles' parameter. Attackers can exploit this vulnerability by injecting malicious script or HTML code, which will be executed in the context of the vulnerable web application. This can lead to various consequences, including unauthorized access, data theft, and the potential for further attacks.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If updating the package is not immediately feasible, a temporary workaround is to disable or restrict access to the 'demos/demo.mysqli.php' file. By preventing access to this file, the vulnerable parameter cannot be exploited. However, this is only a temporary solution, and it is strongly advised to apply the official patch by updating the package as soon as possible.

Conclusion

In conclusion, the php-getid3 package is vulnerable to a cross-site scripting (XSS) vulnerability that allows remote attackers to inject arbitrary web script or HTML. To mitigate this vulnerability, it is crucial to update the package to version 1.9.21+dfsg-1 or later. If immediate updating is not possible, restricting access to the vulnerable file can serve as a temporary workaround. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for php-getid3 →

Share this vulnerability

FAQ

This vulnerability allows remote attackers to inject malicious script or HTML into a vulnerable web application. The impact can range from unauthorized access to sensitive data theft and potential further exploitation.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) to the playground, and it will alert you in real-time if the vulnerability is present.

Yes, the recommended fix is to update the php-getid3 package to version 1.9.21+dfsg-1 or later. This update includes the necessary patches to address the XSS vulnerability.

A temporary workaround is to disable or restrict access to the 'demos/demo.mysqli.php' file. By preventing access to this file, the vulnerable parameter cannot be exploited. However, it is strongly advised to apply the official patch by updating the package as soon as possible.

You can find more information about this vulnerability, including technical details and the CVE identifier, in the official CVE database: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-40926

Related vulnerabilities

Recent vulnerabilities recorded for php-getid3.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback