Cross-Site Scripting (XSS) Vulnerabilities in phpMyAdmin

phpmyadmin Updated 02 Oct 2025

Summary

20/07/2014
N/A
Yes i
Unrated
Not published

CVE-2014-4986: Multiple cross-site scripting (XSS) vulnerabilities in js/functions.js in phpMyAdmin 4.0.x before 4.0.10.1, 4.1.x before 4.1.14.2, and 4.2.x before 4.2.6 allow remote authenticated users to inject arbitrary web script or... Affects phpmyadmin versions < 4:4.2.6-1. Fixed in 4:4.2.6-1. 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 web-based database management tool used for managing MySQL databases. It provides a user-friendly interface for performing various database operations such as creating tables, executing queries, and managing user permissions. However, multiple versions of phpMyAdmin are vulnerable to cross-site scripting (XSS) attacks.

Vulnerability Detail

The vulnerability, identified as CVE-2014-4986, allows remote authenticated users to inject arbitrary web script or HTML into phpMyAdmin. This can be achieved by exploiting improper handling of table and column names during the construction of an AJAX confirmation message. An attacker can craft a malicious table or column name that includes malicious script or HTML code, which will be executed when the confirmation message is displayed to the user. This can lead to various consequences, including the theft of sensitive information, session hijacking, or the execution of arbitrary code on the user's browser.

How To Fix

Minimum fixed version

4:4.2.6-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade phpmyadmin

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

Workaround

If upgrading phpMyAdmin is not immediately feasible, a temporary workaround is to sanitize user input for table and column names. This can be done by implementing input validation and filtering mechanisms to remove or escape any potentially malicious characters. However, this workaround is not a permanent solution and should be followed by upgrading to the latest version of phpMyAdmin as soon as possible.

Conclusion

The cross-site scripting (XSS) vulnerabilities in phpMyAdmin pose a security risk to users. It is crucial to upgrade to the latest version of phpMyAdmin (4.2.6 or later) to ensure the vulnerability is patched. Implementing input validation and filtering mechanisms can serve as a temporary workaround 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 a web-based database management tool used for managing MySQL databases. It provides a user-friendly interface for performing various database operations.

Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts or HTML code into web pages viewed by other users. This can lead to various consequences, including the theft of sensitive information or the execution of arbitrary code on the user's browser.

The vulnerability in phpMyAdmin allows remote authenticated users to inject arbitrary web script or HTML. This can lead to the execution of malicious code on the user's browser, potentially resulting in the theft of sensitive information or the hijacking of user sessions.

A temporary workaround is to sanitize user input for table and column names by implementing input validation and filtering mechanisms. However, this should be followed by upgrading phpMyAdmin to the latest version to ensure a permanent fix.

To fix the vulnerability, it is recommended to upgrade phpMyAdmin to version 4.2.6 or later. This upgrade includes proper handling of table and column names to prevent the injection of malicious script or HTML.

Related vulnerabilities

Recent vulnerabilities recorded for phpmyadmin.

How To Fix

Minimum fixed version

4:4.2.6-1

This is the first release that contains the fix.

sudo apt-get install --only-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