Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-54421 Overview
CVE-2025-54421 is a stored cross-site scripting (XSS) vulnerability in NamelessMC, a website platform used by Minecraft server operators. The flaw affects all versions prior to 2.2.4 and resides in the SEO administration panel. Authenticated attackers with access to the admin SEO settings can inject arbitrary HTML or JavaScript through the default_keywords parameter. The injected payload executes in the browser context of any user visiting a page that renders the saved meta keywords. The project maintainers fixed the issue in version 2.2.4 by applying output encoding to the stored values.
Critical Impact
Authenticated attackers can inject persistent script payloads via SEO configuration fields, enabling session theft, administrative action hijacking, and client-side redirection against site visitors.
Affected Products
- NamelessMC Nameless versions prior to 2.2.4
- Deployments exposing the admin SEO panel (modules/Core/pages/panel/seo.php)
- Any downstream Minecraft community site built on the vulnerable NamelessMC release
Discovery Timeline
- 2025-08-18 - CVE-2025-54421 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-54421
Vulnerability Analysis
The weakness is a stored XSS flaw classified under [CWE-79]. NamelessMC stores administrator-supplied SEO metadata, including the default meta keywords and description, in the application settings table. When the SEO admin page renders these values, the template receives them without HTML encoding. An authenticated attacker holding permissions to modify SEO settings can submit a crafted default_keywords value containing <script> tags or event-handler attributes. The payload is then persisted and reflected back into the DOM for every user who loads the affected admin or front-end page.
Exploitation requires an authenticated session with SEO configuration privileges and user interaction to trigger script execution in the victim's browser. Because the payload is persistent, a single successful injection affects every subsequent viewer until the record is overwritten.
Root Cause
The root cause is missing output sanitization in modules/Core/pages/panel/seo.php. The template variables DEFAULT_DESCRIPTION_VALUE and DEFAULT_KEYWORDS_VALUE were populated directly from Settings::get() without passing through the Output::getClean() helper that performs HTML entity encoding. Any HTML metacharacters stored in the database were therefore rendered verbatim.
Attack Vector
An attacker with authenticated access to the SEO admin area submits a crafted default_keywords parameter. The malicious value is written to the settings store and later served inside the SEO configuration template. When another privileged user, often a higher-tier administrator, opens the SEO page, the browser parses and executes the attacker-controlled markup within the application origin.
// Patch applied in NamelessMC 2.2.4 (modules/Core/pages/panel/seo.php)
$template->getEngine()->addVariables([
'DEFAULT_DESCRIPTION' => $language->get('admin', 'default_description'),
- 'DEFAULT_DESCRIPTION_VALUE' => Settings::get('default_meta_description'),
+ 'DEFAULT_DESCRIPTION_VALUE' => Output::getClean(Settings::get('default_meta_description')),
'DEFAULT_KEYWORDS' => $language->get('admin', 'default_keywords'),
- 'DEFAULT_KEYWORDS_VALUE' => Settings::get('default_meta_keywords'),
+ 'DEFAULT_KEYWORDS_VALUE' => Output::getClean(Settings::get('default_meta_keywords')),
]);
$template_file = 'core/seo';
// Source: https://github.com/NamelessMC/Nameless/commit/56d35cff9ee944c061791ef478cabd2bed0223c4
Detection Methods for CVE-2025-54421
Indicators of Compromise
- Entries in the nl2_settings table where default_meta_keywords or default_meta_description contain <script, onerror=, onload=, or javascript: substrings.
- Web server access logs showing POST requests to /panel/core/seo with HTML or JavaScript tokens in the default_keywords form field.
- Unexpected outbound requests from administrator browsers immediately after visiting the SEO panel.
Detection Strategies
- Perform database audits of NamelessMC settings fields for stored HTML or script content.
- Add web application firewall rules that inspect POST bodies to SEO admin endpoints for HTML tag payloads.
- Review audit logs for administrator accounts that modified SEO settings outside normal change windows.
Monitoring Recommendations
- Alert on new or modified admin accounts gaining SEO configuration permissions.
- Monitor browser Content Security Policy (CSP) violation reports originating from /panel/core/seo.
- Track version strings of deployed NamelessMC instances to confirm all are at 2.2.4 or later.
How to Mitigate CVE-2025-54421
Immediate Actions Required
- Upgrade all NamelessMC installations to version 2.2.4 or later without delay.
- Inspect the default_meta_keywords and default_meta_description settings and remove any HTML or script content.
- Rotate administrator session tokens and credentials for accounts that may have viewed a tampered SEO page.
Patch Information
The fix is published in NamelessMC 2.2.4. The maintainers wrap both SEO template variables with Output::getClean() to HTML-encode stored values before rendering. See the GitHub Security Advisory GHSA-f5rm-w4mx-q7rx and the upstream patch commit for full details.
Workarounds
- Restrict SEO administration permissions to a minimal set of trusted operators until the patch is applied.
- Deploy a Content Security Policy that forbids inline scripts on admin panel routes to limit payload execution.
- Manually sanitize or clear the default_meta_keywords and default_meta_description settings values if upgrading is not immediately possible.
# Upgrade NamelessMC to the patched release
cd /var/www/nameless
git fetch --tags
git checkout v2.2.4
php -r "require 'core/init.php'; echo NAMELESS_VERSION;"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

