CVE-2026-56704
Received Received - Intake

Adminer CSP Bypass via Malicious MySQL Version String

Vulnerability report for CVE-2026-56704, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-25

Last updated on: 2026-08-25

Assigner: VulnCheck

Description

Adminer before 5.4.3 inserts unsanitized database server version strings into script tags with valid CSP nonces without proper validation. Attackers controlling a rogue MySQL server can return crafted version strings that break out of the JavaScript context and execute arbitrary code, bypassing Content Security Policy protections.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-25
Last Modified
2026-08-25
Generated
2026-08-25
AI Q&A
2026-08-25
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
vrana adminer to 5.4.3 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a Cross-Site Scripting (XSS) vulnerability in Adminer versions 5.4.2 and earlier. It occurs when Adminer inserts an unsanitized MySQL server version string into a script tag with a valid Content Security Policy (CSP) nonce. Attackers controlling a malicious MySQL server can craft a version string that breaks out of the JavaScript context, executing arbitrary code. The browser's CSP does not block execution because the script tag has a valid nonce.

Detection Guidance

To detect this vulnerability, check if Adminer versions 5.4.2 or earlier are installed on your system. Review the `adminer.inc.php` file for improper sanitization of MySQL version strings. Monitor network traffic for rogue MySQL servers attempting to inject crafted version strings.

Impact Analysis

An attacker could exploit this to execute arbitrary JavaScript in your browser when you access Adminer connected to a malicious MySQL server. This could lead to session hijacking, data theft, or unauthorized actions on your behalf. The attack requires network access and may involve tricking you into logging into the malicious server via Login CSRF.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating confidentiality and integrity requirements in GDPR and HIPAA. If exploited, it may result in data breaches, triggering compliance obligations such as breach notifications and potential fines under these regulations.

Mitigation Strategies

Upgrade Adminer to version 5.4.3 or later immediately. Disable automatic login to untrusted MySQL servers. Implement strict input validation for version strings. Add additional CSP headers to block inline scripts if possible.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-56704. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart