{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "5.0.0"
              },
              {
                "fixed": "5.0.13"
              },
              {
                "introduced": "4.0.0"
              },
              {
                "fixed": "4.1.69"
              },
              {
                "introduced": "0"
              },
              {
                "fixed": "4.0.63"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "c4eb4aeb55dfaf29ecd3f5e0e35ba4321d9c004a"
            },
            {
              "fixed": "d78f4263f5eef1e7761ba2d55d81959f4de559b6"
            },
            {
              "introduced": "0a71ac74489312835948a250ab6db709fbbb9451"
            },
            {
              "fixed": "248e2e034cedcffe01732cdce01fb3d1ecad9ffa"
            },
            {
              "introduced": "0"
            },
            {
              "fixed": "61c989db281d8e3ee184bb6a6f54912d7e1531e7"
            }
          ],
          "repo": "https://github.com/laravel-backpack/crud",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-m8xx-3x29-84h8"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31114.json"
  },
  "details": "backpack/crud provides Create, Read, Update \u0026 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-\u003egetMessage())` instead of `$exception-\u003egetMessage()`.",
  "id": "CVE-2022-31114",
  "modified": "2026-07-15T01:49:21.555037138Z",
  "published": "2026-06-03T14:41:41.395Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31114.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/Laravel-Backpack/CRUD/security/advisories/GHSA-m8xx-3x29-84h8"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-31114"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "backpack/crud Vulnerable to Cross-site Scripting"
}