osTicket Stored XSS Leads to Admin Takeover (CVE-2026-144337)
osTicket before 1.17.9 and 1.18.0 to 1.18.4 stores a crafted email display name as live HTML, enabling admin takeover; fixed in 1.17.9 and 1.18.5.
TL;DR
- osTicket stores an inbound email display name after decoding it twice, so a double-encoded HTML payload becomes live markup in a collaborator name. CVE-2026-144337 carries CVSS v3.1 9.3 Critical.
- Releases before 1.17.9, and 1.18.0 through 1.18.4, are affected when the helpdesk accepts email and a staff member previews the ticket. The vendor counts 15,000+ businesses using osTicket.
- No public proof of concept or in-the-wild exploitation is reported, and the CVE is not in CISA KEV as of 2026-12-05. Researchers at Positive Technologies are credited.
- Upgrade to 1.17.9 or 1.18.5. "How do I fix it?" gives the download steps and a temporary mitigation.
Am I affected?
You are exposed if an affected osTicket release accepts email into tickets and a staff member can preview those tickets in the staff panel. All of these must hold:
- The installed release is before 1.17.9, or is 1.18.0 through 1.18.4.
- The helpdesk receives email into tickets, which is the normal intake path.
- Email-created collaborators are enabled (
add_email_collabs, true by default), or the sender's From display name is stored through the same path. - A staff member opens the ticket preview or the ticket view where the collaborator list is rendered.
An installation that never accepts email into tickets does not expose this path. An installation that accepts email is exposed when a staff member opens the ticket. The version alone does not decide exposure.
| Release line | Affected versions | Fixed version |
|---|---|---|
| osTicket 1.17 (LTS) | 1.17.8 and earlier | 1.17.9 |
| osTicket 1.18 | 1.18.0 through 1.18.4 | 1.18.5 |
The CVE record lists 1.9.3 as the start of the affected range that ends at 1.17.9, so installations on older branches (1.9 through 1.16) are covered too. NVD and the CVE record rate the flaw CVSS v3.1 9.3 Critical. The GitHub Advisory Database carries the same vector and score under a High label.
Check the installed version in the staff control panel, or on the filesystem:
grep -E "define\('(MAJOR_VERSION|THIS_VERSION)'" /path/to/osticket/bootstrap.php
For the official container, the code is at /var/www/src/public:
docker exec <container> grep -E "define\('(MAJOR_VERSION|THIS_VERSION)'" /var/www/src/public/bootstrap.php
A git checkout reports 1.17-git or 1.18-git rather than a patch level. Treat a git-based deployment as affected unless it was updated after 2026-12-02.
Check whether email collaborators are enabled:
SELECT namespace, `key`, value FROM ost_config WHERE `key` = 'add_email_collabs';
A value of 1 means the setting is on. The default is on, so an unmodified installation accepts To and Cc addresses as collaborators.
How do I fix it?
Upgrade to osTicket 1.17.9 or 1.18.5, released on 2026-12-02, and confirm the version in the staff control panel.
- Back up the database and the
include/ost-config.phpfile. - Download the release archive for your branch.
- Replace the program files but keep your
include/ost-config.php. - Open
/setup/in a browser and run the upgrader if it is offered. - Delete the
setup/directory after the upgrade. - Confirm the version in the staff control panel.
wget https://github.com/osTicket/osTicket/releases/download/v1.18.5/osTicket-v1.18.5.zip
unzip osTicket-v1.18.5.zip
wget https://github.com/osTicket/osTicket/releases/download/v1.17.9/osTicket-v1.17.9.zip
unzip osTicket-v1.17.9.zip
For a container, rebuild the image from the fixed release and recreate the container. Pulling the same image tag does not change the code inside a running container.
The 1.17 branch is the long-term support line, so an installation on 1.17 can stay on that branch and take 1.17.9 without moving to 1.18.
If you cannot upgrade yet, stop email intake or restrict the helpdesk address to trusted senders until the upgrade is done. Disabling add_email_collabs stops To and Cc addresses from becoming collaborators. It does not stop the sender's From display name from being stored and shown, so it is not a complete mitigation.
What is the root cause?
A new collaborator's display name is decoded once inside the sanitizer and a second time when it is stored. A double-encoded payload therefore passes the sanitizer as text and is written to the database as live HTML.
osTicket creates a user record for each new email address it sees. User::fromVars() in include/class.user.php builds the name from the parsed address and stores it on the user:
// include/class.user.php, v1.17.8, line 235
'name' => trim(Format::htmldecode(Format::sanitize($name, false))),
Format::sanitize() passes the value to Format::safe_html(). That function decodes HTML entities before it runs the HtmLawed sanitizer:
// include/class.format.php, v1.17.8, safe_html()
$options = array_merge(array(
'balance' => 1,
'decode' => true
),
$options);
if ($options['decode'])
$html = Format::htmldecode($html);
A double-encoded payload such as &lt;...&gt; becomes <...> in this first decode. HtmLawed sees entity text, not a tag, so it leaves the value alone. fromVars() then calls Format::htmldecode() a second time, which turns <...> into <...>. The user record now holds active markup.
The staff ticket preview prints the collaborator name without encoding it:
// include/staff/templates/ticket-preview.tmpl.php, v1.17.8, line 169
$collab->getUserId(),
$collab->getName(),
Format::htmlchars($collab->getEmail()));
The adjacent email address goes through Format::htmlchars(). The name does not. When a staff member opens the preview, the browser parses the stored name as HTML.
The same storage path handles the From display name and the To and Cc display names. The advisory names To and Cc; the code shows the From name follows the same fromVars() call.
The preview is not the only place the name is printed. The ticket view's collaborator selector also rendered the name, and the release fixed that sink in the same batch. Both sinks read the same stored value, so the double decode matters for every template that prints the name raw.
How is it exploited?
An attacker sends one email to the helpdesk address with a crafted display name, and the payload runs when a staff member previews the resulting ticket.
- The attacker sends an email to the helpdesk address. A To or Cc field carries a double-encoded HTML payload in its display name.
- osTicket parses the address list and calls
User::fromVars()with the display name. Format::safe_html()decodes the value once and passes the remaining entities through HtmLawed as text.fromVars()decodes the value a second time and stores active markup in theost_user.namecolumn.- osTicket adds the address as a collaborator on the ticket.
add_email_collabsis true by default. - A staff member opens the ticket preview.
ticket-preview.tmpl.phpprints the stored name withoutFormat::htmlchars(). - The browser runs the script in the staff panel origin. The script can read the CSRF token and submit requests as the staff user.
The advisory does not publish a payload or an end-to-end page. It describes the double decode and the unescaped preview sink. No public proof of concept is linked from the CVE record or the advisory.
How does the attack flow?
A crafted display name in an inbound email survives a double decode and is stored as raw markup, then runs as script when staff preview the ticket.
What can an attacker do?
An attacker can run JavaScript in the session of any staff member who previews the crafted ticket, including an administrator. The attacker can use that session to create a persistent administrator account.
The advisory states the outcome directly: the script reads the CSRF token and creates an attacker-controlled administrator. That account is the attacker's foothold in the helpdesk.
The impact needs all of these conditions:
- The helpdesk accepts email into tickets.
- An affected release is installed.
- The crafted address becomes a collaborator, which is the default for To and Cc addresses and also happens for the From address.
- A staff member opens the ticket preview or the ticket view that renders the collaborator list.
- The staff member's browser runs the stored markup.
An administrator account can change the helpdesk's settings and staff accounts, and can reach the ticket data the helpdesk stores. That makes the stored XSS a route to the helpdesk's data, not only to the session that ran the script.
The flaw does not give server-side code execution by itself. It runs in the staff member's browser origin. The advisory rates confidentiality and integrity as high with a changed scope, and availability as none.
Why does the fix work?
The fix encodes the collaborator name at the output sink, so the stored markup is rendered as text instead of being parsed as HTML.
The CVE references commit 7750b2a, which changes the two preview templates:
- $collab->getName(),
+ Format::htmlchars($collab->getName()),
Format::htmlchars($collab->getEmail()));
Format::htmlchars() calls htmlspecialchars() with ENT_COMPAT and UTF-8. A stored < becomes <, so the browser displays the name instead of running it.
The same release also changes the staff collaborator selector in commit f2c7209. That commit wraps the name in Format::htmlchars() in ticket-view.inc.php and emits the selector options as a JavaScript value in collaborators.tmpl.php.
The double decode in User::fromVars() remains in 1.17.9. The fix is output encoding, not a change to how the name is stored. A custom template that prints getName() without Format::htmlchars() would still be exposed to the stored markup. The release covers the sinks it changes; it does not make the stored value safe for every possible consumer.
How do I check if I was compromised?
No indicators of compromise are published for CVE-2026-144337. The stored payload is a normal-looking collaborator name in the database, so check for markup in collaborator names and for administrator accounts you did not create.
List collaborator names that contain markup or an encoded tag:
SELECT u.id, u.name, u.created
FROM ost_user u
JOIN ost_thread_collaborator c ON c.user_id = u.id
WHERE u.name LIKE '%<%'
OR u.name LIKE '%<%'
OR u.name LIKE '%&lt;%'
OR u.name LIKE '%javascript:%';
A hit is a lead, not proof. A trusted sender can have a name with those characters. Review the ticket that carries the collaborator and the staff sessions that previewed it.
List administrator accounts and their creation dates:
SELECT staff_id, username, email, isadmin, created
FROM ost_staff
WHERE isadmin = 1
ORDER BY created DESC
LIMIT 20;
An administrator account created around a suspicious ticket preview is a strong lead. Check the web server log for the ticket preview request and for the administrator creation request from the same staff session. An attempt that fails may leave no trace, and a successful payload looks like a normal page view in the access log.
Timeline
- 2026-11-25: Commit
f2c7209escapes the collaborator name in the staff selector. - 2026-12-02: Commit
7750b2aescapes the name in the ticket and task previews, and osTicket 1.17.9 and 1.18.5 ship. - 2026-12-04: CVE-2026-144337 and GHSA-c7xx-cfff-m72m are published.
FAQ
Is the attack unauthenticated?
Yes. The attacker only needs to send an email to the helpdesk address. The victim is a staff member who previews the ticket, which is why the CVSS vector requires user interaction.
Does it work with the default configuration?
Yes, when the helpdesk accepts email. add_email_collabs is true by default, so To and Cc addresses become collaborators. The From display name follows the same storage path even when that setting is off.
Is there a public proof of concept?
No. The CVE record and the advisory describe the double decode and the unescaped preview but publish no payload. No public exploit repository was found when this post was written.
Is CVE-2026-144337 in CISA KEV?
No. The CISA Known Exploited Vulnerabilities catalog was at version 2026.12.04 on 2026-12-05, and this CVE is not in it. No in-the-wild exploitation is reported.
Which versions are fixed?
osTicket 1.17.9 and 1.18.5, both released on 2026-12-02. The 1.17 line is the long-term support branch; the 1.18 line is the current branch.
What if I only use the web portal?
If the installation never accepts email into tickets, the email-derived collaborator path is not reachable. A collaborator name can still be set through the staff panel by an authenticated user, which is a different trust boundary and not this CVE.
References
- CVE Program, "CVE-2026-144337" record, published 2026-12-04 (checked December 5, 2026): https://www.cve.org/CVERecord?id=CVE-2026-144337
- GitHub Advisory Database, "osTicket unauthenticated stored XSS in email-derived collaborator display names", GHSA-c7xx-cfff-m72m, published 2026-12-04 (checked December 5, 2026): https://github.com/advisories/GHSA-c7xx-cfff-m72m
- osTicket, release v1.18.5, published 2026-12-02 (checked December 5, 2026): https://github.com/osTicket/osTicket/releases/tag/v1.18.5
- osTicket, release v1.17.9, published 2026-12-02 (checked December 5, 2026): https://github.com/osTicket/osTicket/releases/tag/v1.17.9
- osTicket, fix commit 7750b2a, "security: Collaborator Preview Name XSS", 2026-12-02 (checked December 5, 2026): https://github.com/osTicket/osTicket/commit/7750b2a014d787d203df30bfbb9a3fccf3fe35d1
- osTicket, fix commit f2c7209, "security: Collaborator Name XSS", 2026-11-25 (checked December 5, 2026): https://github.com/osTicket/osTicket/commit/f2c720988334077460760edb7c630ca7f1c592c6
- osTicket source at v1.17.8,
include/class.user.php(checked December 5, 2026): https://github.com/osTicket/osTicket/blob/v1.17.8/include/class.user.php - osTicket source at v1.17.8,
include/class.format.php(checked December 5, 2026): https://github.com/osTicket/osTicket/blob/v1.17.8/include/class.format.php - osTicket source at v1.17.8,
include/staff/templates/ticket-preview.tmpl.php(checked December 5, 2026): https://github.com/osTicket/osTicket/blob/v1.17.8/include/staff/templates/ticket-preview.tmpl.php - osTicket, "osTicket is a widely used and trusted open source support ticketing system", homepage with the 5+ million users, 15,000+ businesses and 190 countries figures (checked December 5, 2026): https://osticket.com/
- Docker Hub,
osticket/osticketrepository with 2,477,881 pulls (checked December 5, 2026): https://hub.docker.com/r/osticket/osticket - GitHub,
osTicket/osTicketrepository with 4,025 stars and 1,862 forks (checked December 5, 2026): https://github.com/osTicket/osTicket - CISA, Known Exploited Vulnerabilities catalog, version 2026.12.04 (checked December 5, 2026): https://www.cisa.gov/known-exploited-vulnerabilities-catalog
Keep reading
Related articles
Keycloak Login Page Stored XSS, Fixed in 26.8.2 (CVE-2026-107889)
A realm admin's stored JavaScript runs on Keycloak's login page because a URL fix-up step undoes sanitizer encoding; fixed in 26.8.2. Read article
- Automating Security Research: AI Engine Exploits Zulip Stored XSS (CVE-2025-52559)
- Virtualizor SQL Injection to Admin Takeover (CVE-2026-135174)
- Deep Dive: Stored XSS Vulnerability in LiteSpeed Cache Plugin for WordPress (CVE-2024-47374)
- ChatGPT Shared-Link Account Takeover via MathLive Sandbox Escape