Intel

AIKIDO-2026-578474

vrana/adminer is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)GHSA-h6jr-7pr6-grgj Published 3 days ago

61

Medium Risk

This Affects:

PHPvrana/adminer
0.0.1 - 5.4.2
Fixed in 5.4.3
Are you affected? Scan for Free

TL;DR

Adminer inserts the connected database server's version string into an inline script tag that already carries a valid Content-Security-Policy nonce, without sanitizing it. A database server whose reported version does not match the expected numeric shape passes through unchanged. A payload can be passed, leading to execution of arbitrary script in the user's browser. Because the script tag has a valid nonce, the Content-Security-Policy does not block execution, and a login form without a token allows the connection to be forced cross-site. The fix validates the server version string before it is emitted.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and a user logs in to a database server whose reported version string is externally controlled.

Background info

vrana/adminer is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 5.4.2.

How to fix this

Upgrade the vrana/adminer library to the patch version.