Bringing MySQL to the web


Announcement-ID: PMASA-2011-9

Date: 2011-07-23


XSS in table Print view.


The attacker must trick the victim into clicking a link that reaches phpMyAdmin's table print view script; one of the link's parameters is a crafted table name (the name containing Javascript code).


We consider this vulnerability to be minor.

Mitigation factor

The crafted table name must exist (the attacker must have access to create a table on the victim's server).

Affected Versions

The and earlier versions are affected.


Upgrade to phpMyAdmin or or apply the related patch listed below.


This issue was found by Norman Hippert from

Assigned CVE ids: CVE-2011-2642

CWE ids: CWE-661 CWE-79


The following commits have been made to fix this issue:

The following commits have been made on the 3.3 branch to fix this issue:

More information

For further information and in case of questions, please contact the phpMyAdmin team. Our website is