CVE-2022-31114

backpack/crud Vulnerable to Cross-site Scripting

Published Jun 3, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
backpack/crud provides Create, Read, Update & Delete (CRUD) functions for Backpack, a collection of Laravel packages that help users build custom administration panels. Versions prior to 5.0.13, 4.1.69, and 4.0.63 are vulnerable to cross-site scripting. An attacker could conduct a targeted phishing campaign, in order to trick users or admins into clicking a malicious link, which under very specific circumstances could give them information or possibly admin access. Versions 5.0.13, 4.1.69, and 4.0.63 patch the issue. As a workaround, manually look inside error views in `resources/views/errors` and output `e($exception->getMessage())` instead of `$exception->getMessage()`.

Analysis

AI-generated

Technical impact

Backpack‑CRUD, a package for the Laravel framework, was found to allow attackers to inject malicious script content into error views that are rendered to users. The flaw is a classic reflected cross‑site scripting weakness (CWE‑79) that can disclose sensitive information or provide administrative access when a victim follows a crafted link. The impact is confined to users or admins viewing a back‑office page that displays an unescaped exception message.

Affected Systems

The vulnerability exists in Backpack‑CRUD versions prior to 5.0.13, 4.1.69, and 4.0.63. Administrators running any of these older releases are exposed, while versions 5.0.13, 4.1.69, and 4.0.63 contain the fix.

Risk and Exploitability

The CVSS base score of 5.1 indicates a moderate severity. The EPSS score is not available, but the vulnerability is not listed in the CISA KEV catalog. Attackers would need to entice a user or administrator to click a specially crafted link that triggers the vulnerable exception handling path. The breach requires a user‑initiated action, making exposure dependent on targeted phishing or social engineering.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Backpack‑CRUD to at least version 5.0.13, 4.1.69, or 4.0.63, depending on the major release in use.
  • If a patch cannot be applied immediately, modify the templates in resources/views/errors to escape exception messages by replacing $exception->getMessage() with e($exception->getMessage()).
  • Confirm that the application does not expose raw exception messages to end users and review the error handling configuration to block direct script injection.

Generated by OpenCVE AI on June 3, 2026 at 17:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-54108
Github GHSA Github GHSA GHSA-m8xx-3x29-84h8 backpack/crud is vulnerable to Cross-Site Scripting (XSS)
History
Type Values Removed Values Added
First Time appeared Laravel-backpack
Laravel-backpack crud
Vendors & Products Laravel-backpack
Laravel-backpack crud
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description backpack/crud provides Create, Read, Update & Delete (CRUD) functions for Backpack, a collection of Laravel packages that help users build custom administration panels. Versions prior to 5.0.13, 4.1.69, and 4.0.63 are vulnerable to cross-site scripting. An attacker could conduct a targeted phishing campaign, in order to trick users or admins into clicking a malicious link, which under very specific circumstances could give them information or possibly admin access. Versions 5.0.13, 4.1.69, and 4.0.63 patch the issue. As a workaround, manually look inside error views in `resources/views/errors` and output `e($exception->getMessage())` instead of `$exception->getMessage()`.
Title backpack/crud Vulnerable to Cross-site Scripting
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 3, 2026, 4:01 PM
Reserved
May 18, 2022, 6:37 PM
Status
Deferred
Published
Jun 3, 2026, 4:16 PM
Modified
Jul 21, 2026, 7:10 PM