# CVE-2026-54181: backpack/crud: Stored XSS in the color column — the \`@if($column\['escaped'\])\` branches are inverted

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.4
- **CVSS:** 5.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.31% (percentile 17, 2026-11-26)
- **CWE:** CWE-79, CWE-1023
- **Aliases:** GHSA-mmg4-322v-6jvc
- **Published:** 2026-08-20T18:38:50.000Z
- **Modified:** 2026-09-30T17:51:56.193Z

## Who should check

- Projects that depend on Packagist package backpack/crud (\>= 6.0.0, \< 6.8.14)
- Anyone running Laravel-Backpack CRUD \>= 6.0.0, \< 6.8.14; \>= 7.0.0, \< 7.0.38

## Description

backpack/crud provides Create, Read, Update & Delete (CRUD) functions for Backpack, a collection of Laravel packages that help users build custom administration panels. From 6.0.0 until 6.8.14 and 7.0.38, src/resources/views/crud/columns/color.blade.php inverts the escaped and raw rendering branches controlled by $column\['escaped'\], which defaults to true, causing $column\['text'\] to be rendered unescaped by default. An attacker who can store an unsanitized value in a color column can execute script in the browser of a user who views the CRUD list, including an administrator, with access to the victim's session-backed application capabilities. Exploitation requires write access to the stored color value and a victim viewing the list. This issue is fixed in versions 6.8.14 and 7.0.38.

## Affected and fixed versions

- Packagist `backpack/crud`: affected \>= 6.0.0, \< 6.8.14; fixed 6.8.14, 7.0.38 (osv)
- Laravel-Backpack CRUD: \>= 6.0.0, \< 6.8.14; \>= 7.0.0, \< 7.0.38 (cvelist)

## Mitigation

- Upgrade backpack/crud to one of 6.8.14, 7.0.38 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-54181. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-54181.md
Affected: backpack/crud >= 6.0.0, < 6.8.14
Fixed in: 6.8.14, 7.0.38

Steps:
1. Search this machine and project for backpack/crud (Packagist), Laravel-Backpack CRUD: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-54181 being exploited?

There is no confirmed exploitation: CVE-2026-54181 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-54181?

Medium: CVSS 5.4 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-54181?

backpack/crud \>= 6.0.0, \< 6.8.14.

### Is there a fix for CVE-2026-54181?

Yes. Fixed in 6.8.14, 7.0.38. Upgrade backpack/crud to one of 6.8.14, 7.0.38 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-54181?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/Laravel-Backpack/CRUD/security/advisories/GHSA-mmg4-322v-6jvc>
- patch: <https://github.com/Laravel-Backpack/CRUD/pull/5992>
- patch: <https://github.com/Laravel-Backpack/CRUD/pull/5994>
- patch: <https://github.com/Laravel-Backpack/CRUD/commit/608652b1020ba274781f222d2959d7780a559a08>
- patch: <https://github.com/Laravel-Backpack/CRUD/commit/76c3a6e50e3fbd6d5f633208da5b04acb8322969>
- other: <https://github.com/Laravel-Backpack/CRUD/releases/tag/6.8.14>
- other: <https://github.com/Laravel-Backpack/CRUD/releases/tag/7.0.38>
- other: <https://github.com/Laravel-Backpack/CRUD>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-54181>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-mmg4-322v-6jvc> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-54181> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-54181>
