CVE-2026-86738: Snipe-IT before 8.7.0 CSS Injection via Custom CSS
Snipe-IT versions before 8.7.0 contain a CSS injection vulnerability in the Custom CSS field due to incomplete sanitization that reverses HTML encoding on greater-than and double-quote characters. Superusers can plant malicious CSS payloads using @import and url() references to exfiltrate CSRF tokens from other superusers via attribute-selector rules, enabling account takeover.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Snipe-ITto a version that resolves this vulnerability.Fixed in 8.7.0 - Configuration
Update Snipe-IT to 8.7.0 or later to address the Custom CSS incomplete sanitization that reverses HTML encoding on greater-than (>) and double-quote (") characters.
Snipe-IT Custom CSS field Custom CSS input (allowlist/sanitization) = Ensure incomplete sanitization is fixed (do not reverse HTML encoding for > and ") - Compensating control
Restrict who can edit Snipe-IT superuser Custom CSS (since superusers can plant malicious CSS payloads via @import and url() references) to reduce risk of CSRF token exfiltration and account takeover.
Event History
Frequently Asked Questions
Who can introduce the malicious CSS, and who is at risk of having an account taken over?
A superuser must be able to enter a payload in the Custom CSS field. The described payload targets other superusers by exfiltrating their CSRF tokens, which can enable takeover of those accounts.
Does exploitation require an attacker to interact with a victim?
The available information describes a superuser planting CSS that exfiltrates CSRF tokens from other superusers. It does not state what specific victim action or page visit is required.
Which releases are affected?
Snipe-IT versions before 8.7.0 are affected. The provided data does not identify any other affected configuration conditions.