Incomplete Comparison with Missing Factors Affecting backpack/crud package, versions >=6.0.0, <6.8.14>=7.0.0, <7.0.38


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-BACKPACKCRUD-19427949
  • published29 Aug 2026
  • disclosed20 Aug 2026
  • creditUnknown

Introduced: 20 Aug 2026

NewCVE-2026-54181  (opens in a new tab)
CWE-1023  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade backpack/crud to version 6.8.14, 7.0.38 or higher.

Overview

backpack/crud is a package that helps you build an admin interface for your Eloquent models, using Laravel 5

Affected versions of this package are vulnerable to Incomplete Comparison with Missing Factors via the color column rendering process in the Blade template, where the escaped and unescaped branches are inverted. An attacker can execute arbitrary JavaScript in the browser of users viewing affected pages by injecting malicious values into the color column. This can lead to theft of session cookies and CSRF tokens. This is only exploitable if an attacker is able to write unsanitized values into a color-typed column.

Workaround

This vulnerability can be mitigated by validating stored color values against a strict CSS color grammar (e.g., /^#[0-9a-fA-F]{3,6}$/) at the model layer before data reaches the view.

CVSS Base Scores

version 4.0
version 3.1