CVE-2026-100695: Adminer before 6.0.2 XSS via CONNECTION_ID escalating to RCE
Adminer before 6.0.2 contains a cross-site scripting vulnerability where the CONNECTIONID() database result is interpolated into JavaScript without proper escaping, allowing a malicious database server to execute arbitrary JavaScript in the authenticated Adminer origin. In co-located deployments where the database has FILE privileges and can write to the webroot, attackers can use the XSS to submit authenticated SQL requests that write PHP files via INTO DUMPFILE, achieving remote code execution as the web server account.
Affected Software
Event History
Frequently Asked Questions
What does an attacker need to exploit this issue?
The attacker needs to induce user interaction with Adminer while it is connected to a malicious database server. No attacker privileges are required, but the injected JavaScript executes in the origin of an authenticated Adminer session.
When can this lead to remote code execution rather than only browser-side impact?
Remote code execution requires a co-located deployment where the database has FILE privileges and can write to the webroot. Under those conditions, the injected script can submit authenticated SQL requests that write a PHP file with INTO DUMPFILE, executing as the web server account.
Which versions should be remediated?
Adminer versions before 6.0.2 are affected. Upgrade to version 6.0.2 or later.