CVE-2016-5731: phpMyAdmin Cross-site scripting (XSS) vulnerability

phpmyadmin/phpmyadmin Updated 02 Oct 2025

Summary

14/05/2022
Yes i
Moderate
6.1

CVE-2016-5731: phpMyAdmin Cross-site scripting (XSS) vulnerability. Affects phpmyadmin/phpmyadmin across 3 version ranges.

>= 4.0, < 4.0.10.16 >= 4.4, < 4.4.15.7 >= 4.6, < 4.6.3

Fixed in 4.0.10.16, 4.4.15.7 or 4.6.3, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2016-5731 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

phpMyAdmin is a popular open-source administration tool for managing MySQL databases. It provides a web-based interface that allows users to perform various database management tasks. This vulnerability affects versions 4.0.x before 4.0.10.16, 4.4.x before 4.4.15.7, and 4.6.x before 4.6.3 of phpMyAdmin. The vulnerability allows remote attackers to inject arbitrary web script or HTML through vectors involving an OpenID error message.

Vulnerability Detail

The vulnerability in phpMyAdmin is a cross-site scripting (XSS) vulnerability. It occurs in the 'examples/openid.php' file and can be exploited by remote attackers. By manipulating the OpenID error message, an attacker can inject malicious web script or HTML code into the application. This can lead to various security risks, such as stealing sensitive user information, performing unauthorized actions on behalf of the user, or spreading malware to other users.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 4.0, < 4.0.10.16 4.0.10.16
    composer require phpmyadmin/phpmyadmin:4.0.10.16
  • >= 4.4, < 4.4.15.7 4.4.15.7
    composer require phpmyadmin/phpmyadmin:4.4.15.7
  • >= 4.6, < 4.6.3 4.6.3
    composer require phpmyadmin/phpmyadmin:4.6.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading phpMyAdmin is not immediately possible, a temporary workaround is to disable the affected 'examples/openid.php' file or restrict access to it. This can be done by modifying the web server configuration or using access control mechanisms. However, this is not a permanent solution, and upgrading to a patched version is strongly advised.

Conclusion

The phpMyAdmin XSS vulnerability is a significant security risk that can allow remote attackers to inject malicious code into the application. Upgrading to the latest patched version is the recommended solution to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for phpmyadmin/phpmyadmin →

Share this vulnerability

FAQ

phpMyAdmin is an open-source administration tool for managing MySQL databases. It provides a web-based interface for performing various database management tasks.

Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. This can lead to various security risks, such as stealing sensitive information or performing unauthorized actions on behalf of the user.

The vulnerability can be exploited by remote attackers who can manipulate the OpenID error message to inject malicious web script or HTML code into the application.

The consequences of this vulnerability include the potential theft of sensitive user information, unauthorized actions performed on behalf of the user, and the spread of malware to other users.

To protect your phpMyAdmin installation, it is recommended to upgrade to the latest patched version (4.0.10.16, 4.4.15.7, or 4.6.3). Additionally, you should follow best practices for web application security, such as input validation and output encoding.

Related vulnerabilities

Recent vulnerabilities recorded for phpmyadmin/phpmyadmin.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 4.0, < 4.0.10.16 4.0.10.16
    composer require phpmyadmin/phpmyadmin:4.0.10.16
  • >= 4.4, < 4.4.15.7 4.4.15.7
    composer require phpmyadmin/phpmyadmin:4.4.15.7
  • >= 4.6, < 4.6.3 4.6.3
    composer require phpmyadmin/phpmyadmin:4.6.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. 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