CVE-2025-24530 phpMyAdmin XSS when checking tables

Medium 6.4 Published Updated

Cross-site scripting in phpMyAdmin allows attackers to execute scripts via crafted table or database names, potentially compromising user sessions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-24530?

CVE-2025-24530 is a medium-severity cross-site scripting vulnerability in phpMyAdmin, published on 23 Jan 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

An issue was discovered in phpMyAdmin 5.x before 5.2.2. An XSS vulnerability has been discovered for the check tables feature. A crafted table or database name could be used for XSS.

Weakness: CWE-79

Which versions are affected by CVE-2025-24530?

3 open source packages ship an affected version, including phpmyadmin/phpmyadmin and phpmyadmin.

PackageAffectedFixed in
phpmyadmin/phpmyadmin PackagistFrom 5.0.05.2.2
phpmyadmin/phpmyadmin PackagistFrom 5.0.05.2.2
phpmyadmin BitnamiFrom 5.0.05.2.2

How do I fix CVE-2025-24530?

Upgrade phpmyadmin/phpmyadmin to 5.2.2 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-24530 being exploited?

There is no known exploitation of CVE-2025-24530 in the wild and no public exploit code.

Sources

Also known as BIT-phpmyadmin-2025-24530, DEBIAN-CVE-2025-24530, GHSA-222v-cx2c-q2f5, UBUNTU-CVE-2025-24530.

Is CVE-2025-24530 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free