All vulnerabilities

Servers and applications

GHSA-m5cw-xqr3-8f8x

Custom CSS sanitizer bypass via image-set() / image() load primitives (incomplete fix of GHSA-v279-2q6w-g8j4)

Severity
High 8.7
Published
3 Dec 2026
Last changed
3 Dec 2026
Added to UpHeron
3 Dec 2026
Fixed in
8.8.1
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N
Sources
Project advisories (GitHub)

Description

The "Custom CSS" feature (app/Models/Setting.php, show_custom_css()) sanitizes the administrator-supplied CSS by rewriting/validating only url(...) tokens. The CSS image fetch primitives image-set() and image() are not processed at all, so an authenticated superuser can load attacker-controlled external resources that the sanitizer exists to prevent.

This is a sibling / incomplete fix of GHSA-v279-2q6w-g8j4 (fix commit a8ab05ac5). That commit switched the url() handling from a denylist to a scheme/// allowlist, but the allowlist is applied exclusively to url() matches, so image-set()/image() remain a bypass in both:

  • released v8.7.0–v8.7.2 (denylist: //, data:, javascript:, vbscript:, @import), and
  • the current develop/unreleased allowlist (#^[a-zA-Z][a-zA-Z0-9+.-]*:|^//#, url() only).

grep -ci "image-set" app/Models/Setting.php returns 0 in both v8.7.0 and current HEAD.

From grokability/snipe-it's security advisory. Shortened; the full text is there.

Workarounds

Clear/disable Custom CSS, or restrict superuser accounts.

Workarounds as given by grokability/snipe-it's security advisory.

Affected software

SoftwareAffected versions
Snipe-ITServers and applications · github:grokability/snipe-it
  • Every version before 8.8.1

About Snipe-IT

A free open source IT asset/license management system

From its GitHub repository.
Docker Hub pulls
30,202,208Docker Hub, 29 Nov 2026
GitHub stars
15,283GitHub, 29 Nov 2026
Forks
4,089GitHub, 29 Nov 2026
Latest release
v8.8.4GitHub, 29 Nov 2026
Released
20 Nov 2026GitHub
License
AGPL-3.0GitHub
First published on GitHub
12 Nov 2013GitHub

References