GHSA-mgr9-6c2j-jxrq: Pterodactyl/panel Cross-Site Scripting Vulnerability
LOWGHSA-mgr9-6c2j-jxrq is a LOW cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Pterodactyl/panel libraries in the Packagist ecosystem. The issue involves pterodactyl has a reflected xss vulnerability in “create new database host”. Remediation is available by upgrading affected packages to version 1.12.0.
GHSA-mgr9-6c2j-jxrq at a Glance
How to Fix GHSA-mgr9-6c2j-jxrq
To remediate this vulnerability, upgrade all affected Pterodactyl/panel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade pterodactyl/panel to 1.12.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for pterodactyl/panel
How to Check if You Are Affected
To determine whether your application is affected by GHSA-mgr9-6c2j-jxrq, inspect your project dependencies for Pterodactyl/panel:
inspect dependencies for pterodactyl/panel
Analyze the terminal output to locate any version of Pterodactyl/panel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.12.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where 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. In Pterodactyl/panel, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-mgr9-6c2j-jxrq Affected Pterodactyl/panel Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pterodactyl/panel
|
Packagist |
< 1.12.0
|
1.12.0
|
References
Frequently Asked Questions
What is GHSA-mgr9-6c2j-jxrq?
Which Pterodactyl/panel versions are affected?
What version fixes GHSA-mgr9-6c2j-jxrq?
Is pterodactyl/panel affected?
What CWE is associated with GHSA-mgr9-6c2j-jxrq?
How can I check Packagist dependencies for GHSA-mgr9-6c2j-jxrq?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mgr9-6c2j-jxrq",
"modified" : "2025-12-30T15:13:52Z",
"published" : "2025-12-30T15:13:52Z",
"aliases" : [ ],
"summary" : "Pterodactyl has a Reflected XSS vulnerability in “Create New Database Host”",
"details" : "> [!NOTE]\n> Message from the Pterodactyl team:\n>\n> The Pterodactyl team has evaluated this as a minor security issue but does not consider it something that should be assigned a CVE, nor does it require active patching by vulnerable systems.\n>\n> This issue is entirely self-inflicted and requires an administrative user paste an _obviously_ incorrect value into a database host field, submit it, and run into the XSS when the error message is rendered. However, we have determined that this fix is good security hygiene and may prevent issues in other areas not yet discovered.\n\n### Summary\nWhen an administrative user creates a new database host they are prompted to provide a `Host` value which is expected to be a domain or IP address. When an invalid value is encountered and passed back to `gethostaddr` and/or directly to the MySQL connection tooling, an error is returned. This error is then passed back along to the front-end, but was not properly sanitized when rendered.\n\nTherefore it is possible for an admin to _knowingly_ paste a malicious payload such as `<script>prompt(document.domain)</script>` into the `Host` field and XSS themselves.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "pterodactyl/panel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.12.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pterodactyl/panel/security/advisories/GHSA-mgr9-6c2j-jxrq"
}, {
"type" : "WEB",
"url" : "https://github.com/pterodactyl/panel/commit/1570ff250939b75b3ba8cd03e5025d8293544ed4"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pterodactyl/panel"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-30T15:13:52Z",
"nvd_published_at" : null
}
}