CVE-2026-62368: Snipe-IT: Stored XSS via Custom Field name in asset-list column headers
Impact A user with the "customfields.create" permission can store HTML/JS in a Custom Field name, which is later rendered as an asset-list column title WITHOUT escaping at app/Presenters/AssetPresenter.php line 364 ('title' => $field->name) and injected into the table header by the bundled bootstrap-table plugin. It executes for anyone who opens an asset list (e.g. /hardware), including superusers, on page load with no interaction. Since "customfields.create" can be granted to non-superusers, a lower-privileged user gets script execution in a superuser's session -> privilege escalation.
STEPS TO REPRODUCE 1. As a user with "customfields.create", create a Custom Field named: <img src=x onerror=alert(1)> 2. Add the field to a fieldset that is associated with an asset model. 3. Open /hardware -> the payload executes on load.
DEMONSTRATED IMPACT An account holding ONLY "customfields.create" (HTTP 403 on /users) planted a payload that, when a superuser opened /hardware, issued an authenticated request in that session and granted the attacker's own account the "superuser" permission (afterwards: GET /users = 200, isSuperUser() = true).
ROOT CAUSE - Blade {{ }} encodes the data-columns attribute, but the browser decodes it back before bootstrap-table reads the title; bootstrap-table then renders the header title unescaped because its table-level "escape" option defaults to false and is never enabled. (The per-column 'escape' => true covers cell values, not the header title.) Patches Patched in https://github.com/grokability/snipe-it/commit/58754e4e3b86b58a0c4523012ef04a2ae990d2c8
Other sources
Snipe-IT is an IT asset/license management system. Prior to 8.7.0, a user with the customfields.create permission can store markup in CustomField.name, and app/Presenters/AssetPresenter.php assigns that value as an unescaped bootstrap-table header title. When another user opens an asset-list page associated with the fieldset, the stored markup executes on page load in that user's Snipe-IT session. This can expose same-origin data and perform authenticated actions with the victim's privileges, including privilege escalation when a superuser views the affected list. This issue is fixed in version 8.7.0.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/snipe/snipe-itto a version that resolves this vulnerability.Fixed in 8.7.0 - Upgrade
Upgrade
Snipe-ITto a version that resolves this vulnerability.Fixed in 8.7.0Patch 58754e4e3b86b58a0c4523012ef04a2ae990d2c8
Event History
Frequently Asked Questions
Who can introduce the malicious content, and when does it execute?
Any user with the customfields.create permission can place markup in a custom field name. The markup executes when another user opens an asset-list page associated with that fieldset.
Which users face the greatest impact?
Any user viewing an affected asset list can have actions performed in their authenticated Snipe-IT session and may expose same-origin data. A superuser viewing the affected list could enable privilege escalation.
Are default installations affected?
The issue depends on a user having customfields.create permission and on another user opening an asset-list page associated with the affected fieldset. The provided data does not establish whether those conditions exist in a default deployment.
What version fixes the issue?
Upgrade Snipe-IT to version 8.7.0. The vulnerability affects versions prior to 8.7.0.