XSS Vulnerability in phpMyAdmin

phpmyadmin Updated 02 Oct 2025

Summary

11/12/2016
N/A
Yes i
Medium
6.1

CVE-2016-6608: XSS issues were discovered in phpMyAdmin. Affects phpmyadmin across 8 version ranges.

< 0fc00c0ab895cf83883ce43435f9563019e1b0f5 < 4.4.15.8-r0 < 07fd0bce678e83d5f81d7a683f1052fe45764d0c < 35e191d74b50c8f5a7b87fa9889869cc3a88255d < 37b38431d167915675fc8ab512470528147e72de < 73fd0dc2a8f5471c717a887aae22bde97bc5498f < a6ecc52b3d1245a30d270d871992f2fedcf84be6 < f2db92434b71973a1281dfbaec8837e51e602c77

Fixed in 4.4.15.8-r0. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

phpMyAdmin is a popular open-source tool for managing MySQL databases. It provides a web-based interface that allows users to perform various database operations such as creating, modifying, and deleting tables, executing SQL queries, and managing user privileges. The tool is widely used by developers and administrators to interact with MySQL databases efficiently. However, a cross-site scripting (XSS) vulnerability has been discovered in phpMyAdmin, which can be exploited by attackers to execute malicious code in the context of a user's browser.

Vulnerability Detail

The XSS vulnerability in phpMyAdmin affects the database privilege check and the "Remove partitioning" functionality. By crafting specially designed database names, an attacker can trigger the XSS attack. This vulnerability exists in all versions of phpMyAdmin 4.6.x prior to 4.6.4. If successfully exploited, an attacker can execute arbitrary JavaScript code in the victim's browser, potentially leading to session hijacking, data theft, or other malicious activities.

How To Fix

Minimum fixed version

4.4.15.8-r0

This is the first release that contains the fix.

sudo apk add --upgrade phpmyadmin

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately possible, users can apply a temporary workaround by sanitizing user input and implementing strict validation checks for database names. This can help prevent the execution of malicious code injected through crafted database names. However, applying the workaround is not a permanent solution, and upgrading to the patched version is strongly recommended.

Conclusion

The XSS vulnerability in phpMyAdmin poses a significant security risk to users. It is crucial to upgrade to the latest version (4.6.4 or later) to mitigate this vulnerability. Applying strict input validation and sanitization can provide temporary protection until the upgrade is performed. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for phpmyadmin →

Share this vulnerability

FAQ

phpMyAdmin is an open-source tool that provides a web-based interface for managing MySQL databases. It allows users to perform various database operations and is widely used by developers and administrators.

Cross-site scripting (XSS) is a security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. In the case of phpMyAdmin, the vulnerability can be exploited by crafting specially designed database names.

If successfully exploited, this vulnerability can allow an attacker to execute arbitrary JavaScript code in the victim's browser. This can lead to various malicious activities, including session hijacking, data theft, and unauthorized access to sensitive information.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your phpMyAdmin installation is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any known vulnerabilities.

Yes, the CVSS score for this vulnerability is 6.1. The CVSS score provides a standardized measure of the severity of a vulnerability, with higher scores indicating greater potential impact.

Related vulnerabilities

Recent vulnerabilities recorded for phpmyadmin.

How To Fix

Minimum fixed version

4.4.15.8-r0

This is the first release that contains the fix.

sudo apk add --upgrade phpmyadmin

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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