{"id":"CVE-2026-34246","aliases":["CVE-2026-34246"],"related":[],"kind":"vulnerability","state":"published","title":"CtrlPanel: Stored XSS in Admin Role Management via Unescaped DataTable HTML Output","summary":"CtrlPanel is open-source billing software for hosting providers. Versions 1.1.1 and prior contain a Stored Cross-Site Scripting (XSS) vulnerability exists in the admin role management interface. In app/Http/Controllers/Admin/RoleController.php, the datatable() method interpolates $role->name and $role->color directly into a <span> element's HTML and style attribute without sanitization, and the chained .rawColumns(['actions', 'name']) call instructs DataTables to render the name column as raw HTML, bypassing automatic output escaping. An admin with role creation or edit permissions can inject a payload such as <img src=x onerror=\"alert('XSS_POC')\"> into the name or color fields, which is persisted to the database and executes in the browser of every admin who loads the /admin/roles page. This enables session hijacking via cookie theft, credential harvesting through fake login prompts or keyloggers, lateral privilege escalation by performing admin actions on behalf of victims, and a persistent backdoor that re-executes on every page load until the malicious role record is removed. This issue has been resolved in version 1.2.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"CtrlPanel is open-source billing software for hosting providers. Versions 1.1.1 and prior contain a Stored Cross-Site Scripting (XSS) vulnerability exists in the admin role management interface. In app/Http/Controllers/Admin/RoleController.php, the datatable() method interpolates $role->name and $role->color directly into a <span> element's HTML and style attribute without sanitization, and the chained .rawColumns(['actions', 'name']) call instructs DataTables to render the name column as raw HTML, bypassing automatic output escaping. An admin with role creation or edit permissions can inject a payload such as <img src=x onerror=\"alert('XSS_POC')\"> into the name or color fields, which is persisted to the database and executes in the browser of every admin who loads the /admin/roles page. This enables session hijacking via cookie theft, credential harvesting through fake login prompts or keyloggers, lateral privilege escalation by performing admin actions on behalf of victims, and a persistent backdoor that re-executes on every page load until the malicious role record is removed. This issue has been resolved in version 1.2.0.","source":"cvelist"},{"lang":"es","text":"CtrlPanel es un software de facturación de código abierto para proveedores de alojamiento. Las versiones 1.1.1 y anteriores contienen una vulnerabilidad de Cross-Site Scripting (XSS) Almacenado que existe en la interfaz de gestión de roles de administrador. En app/Http/Controllers/Admin/RoleController.php, el método datatable() interpola $role->name y $role->color directamente en el HTML y el atributo de estilo de un elemento <span> sin sanitización, y la llamada encadenada .rawColumns(['actions', 'name']) instruye a DataTables para que renderice la columna 'name' como HTML sin procesar, omitiendo el escape automático de la salida. Un administrador con permisos de creación o edición de roles puede inyectar una carga útil como <img src=x onerror=\"alert('XSS_POC')\"> en los campos de nombre o color, que se persiste en la base de datos y se ejecuta en el navegador de cada administrador que carga la página /admin/roles. Esto permite el secuestro de sesión mediante el robo de cookies, la recolección de credenciales a través de avisos de inicio de sesión falsos o keyloggers, la escalada de privilegios lateral al realizar acciones de administrador en nombre de las víctimas, y una puerta trasera persistente que se vuelve a ejecutar en cada carga de página hasta que se elimina el registro de rol malicioso. Este problema ha sido resuelto en la versión 1.2.0.","source":"nvd"}],"published":"2026-05-19T21:18:10.081Z","modified":"2026-07-24T09:10:00.153Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"}],"cwes":["CWE-80","CWE-116"],"affected":[{"ranges":[{"version":"< 1.2.0","status":"affected"}],"vendor":"Ctrlpanel-gg","product":"panel","source":"cvelist"}],"references":[{"url":"https://github.com/Ctrlpanel-gg/panel/security/advisories/GHSA-wpqj-xwhq-2mmh","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Ctrlpanel-gg/panel/releases/tag/1.2.0","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-20T17:20:50.825Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-34246","url":"https://www.cve.org/CVERecord?id=CVE-2026-34246","licence":"CVE Terms of Use","modified":"2026-05-20T17:21:20.034Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-34246","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34246","licence":"Public domain","modified":"2026-07-24T09:10:00.153Z"}],"updatedAt":"2026-11-25T22:59:21.999Z","epss":{"score":0.00273,"percentile":0.12402,"date":"2026-11-30T12:00:22.000Z"}}