Cross-Site Scripting (XSS) Vulnerability in phpMyAdmin - CVE-2018-7260

phpmyadmin Updated 02 Oct 2025

Summary

21/02/2018
N/A
Yes i
Medium
5.4

CVE-2018-7260: Cross-site scripting (XSS) vulnerability in db_central_columns.php in phpMyAdmin before 4.7.8 allows remote authenticated users to inject arbitrary web script or HTML via a crafted URL. Affects phpmyadmin across 2 version ranges.

< 4:4.9.1+dfsg1-2 < d2886a3

Fixed in 4:4.9.1+dfsg1-2. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

phpMyAdmin is a widely used open-source tool for managing MySQL databases through a web interface. It provides features such as database creation, modification, and administration, making it essential for developers and database administrators. However, like many web applications, it is susceptible to security vulnerabilities, including cross-site scripting (XSS), which can compromise user data and application integrity.

Vulnerability Detail

The CVE-2018-7260 vulnerability is a cross-site scripting (XSS) flaw found in the db_central_columns.php file of phpMyAdmin versions prior to 4.7.8. This vulnerability allows remote authenticated users to inject arbitrary web scripts or HTML into the application via a crafted URL. The potential ramifications include unauthorized access to sensitive data, session hijacking, and the ability to perform actions on behalf of other users, thereby undermining the security of the application.

How To Fix

Minimum fixed version

4:4.9.1+dfsg1-2

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

As a temporary workaround, users can restrict access to the phpMyAdmin interface by implementing IP whitelisting or using strong authentication methods to limit exposure to potential attackers. Additionally, sanitizing user inputs can help mitigate the risk of XSS attacks until the software is updated.

Conclusion

CVE-2018-7260 represents a significant security risk for users of phpMyAdmin prior to version 4.7.8 due to its potential for XSS attacks. It is crucial for users to upgrade their installations promptly and consider implementing additional security measures to protect their applications.

See every vulnerability recorded for phpmyadmin →

Share this vulnerability

FAQ

CVE-2018-7260 is a cross-site scripting (XSS) vulnerability in phpMyAdmin that allows remote authenticated users to inject malicious scripts via crafted URLs.

You can check if your phpMyAdmin installation is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor for open-source vulnerabilities without needing to sign up.

The risks include unauthorized access to user data, session hijacking, and the potential for attackers to perform actions on behalf of other users, compromising the integrity of the application.

If an immediate upgrade is not possible, implement access restrictions and input sanitization as temporary workarounds to reduce the risk of exploitation.

The CVSS score for CVE-2018-7260 is 5.4, indicating a moderate level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for phpmyadmin.

How To Fix

Minimum fixed version

4:4.9.1+dfsg1-2

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