# CVE-2026-34246: Ctrlpanel-gg CtrlPanel stored XSS in admin role management

Source: https://junglewise.ai/threats/cve-2026-34246-ctrlpanel-gg-ctrlpanel-stored-xss-in-admin-role-management  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-19. Updated: 2026-05-19  
License: CC BY 4.0 with a link back

CVE-2026-34246 · Severity: medium · CVSS 4.8 · Published 2026-05-19

CtrlPanel is an open-source billing and management platform for hosting providers. A security flaw in the administrative role management interface allows an authorized administrator to inject malicious scripts into the system. If another administrator views the roles list, these scripts could execute in their browser, potentially leading to session hijacking, unauthorized data access, or the performance of administrative actions without their consent.

Technologies: [CtrlPanel-gg CtrlPanel](https://junglewise.ai/threats/technologies/ctrlpanel). Vendors: [CtrlPanel-gg](https://junglewise.ai/threats/vendors/ctrlpanel-gg).

## Quick answers

**Is CVE-2026-34246 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-34246 being exploited in the wild.

**How severe is CVE-2026-34246?** Medium severity, with a CVSS score of 4.8, published 19 May 2026.

**Which products and versions are affected?** CtrlPanel-gg CtrlPanel <= 1.1.1.

**Is there a fix for CVE-2026-34246?** A patch was published on 2026-04-24: Version 1.2.0 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-34246 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-34246?** Check whether you run CtrlPanel-gg CtrlPanel at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A stored cross-site scripting (XSS) vulnerability exists in CtrlPanel versions 1.1.1 and prior within the `datatable()` method of `app/Http/Controllers/Admin/RoleController.php`. The application interpolates `$role->name` and `$role->color` directly into a `<span>` element's HTML and style attributes without sanitization. Furthermore, the use of `.rawColumns(['actions', 'name'])` instructs the DataTables component to render the output as raw HTML, bypassing automatic escaping. An attacker with administrative privileges to create or edit roles can inject a malicious payload (e.g., `<img src=x onerror="...">`) that persists in the database and executes in the browser of any administrator who visits the `/admin/roles` page. This issue is resolved in version 1.2.0.

## Affected products

- Ctrlpanel-gg CtrlPanel <= 1.1.1

## Timeline

- 2026-04-24: patched: Version 1.2.0 released
- 2026-05-08: advisory: GitHub Security Advisory published
- 2026-05-19: disclosed: CVE published to NVD

## References

- [https://github.com/Ctrlpanel-gg/panel/releases/tag/1.2.0](https://github.com/Ctrlpanel-gg/panel/releases/tag/1.2.0)
- [https://github.com/Ctrlpanel-gg/panel/security/advisories/GHSA-wpqj-xwhq-2mmh](https://github.com/Ctrlpanel-gg/panel/security/advisories/GHSA-wpqj-xwhq-2mmh)

## Related threats

- [Ctrlpanel-gg CtrlPanel broken access control in admin controllers](https://junglewise.ai/threats/cve-2026-34358-ctrlpanel-gg-ctrlpanel-broken-access-control-in-admin-controllers)
- [CtrlPanel Stored XSS in ticket reply notifications](https://junglewise.ai/threats/cve-2026-34241-ctrlpanel-stored-xss-in-ticket-reply-notifications)
- [CtrlPanel unauthenticated RCE in web installer](https://junglewise.ai/threats/cve-2026-34234-ctrlpanel-unauthenticated-rce-in-web-installer)
- [Ctrlpanel-gg CtrlPanel missing authorization in admin DataTable endpoints](https://junglewise.ai/threats/cve-2026-34233-ctrlpanel-gg-ctrlpanel-missing-authorization-in-admin-datatable)
- [CtrlPanel unsafe dynamic class instantiation in admin settings](https://junglewise.ai/threats/cve-2026-34216-ctrlpanel-unsafe-dynamic-class-instantiation-in-admin-settings)
