{
  "schemaVersion": "guard-threat-campaign/v1",
  "id": "HGTC-2026-6CBCFE05",
  "slug": "cve-2026-138223-databasement-toast-template-injection",
  "title": "Databasement toast helper compiles a caller's icon into a template, so a crafted icon runs PHP on the host (CVE-2026-138223)",
  "aliases": [
    "CVE-2026-138223",
    "GHSA-76f6-wp5v-23c2"
  ],
  "summary": "CVE-2026-138223 is a server-side template injection in David-Crty Databasement, in the toast function of app/Traits/Toast.php, affecting versions up to 1.7.12 and fixed by the commit the record names, shipped in 1.7.13; the maintainer advisory GHSA-76f6-wp5v-23c2 directs operators to upgrade to 1.7.14 or later. The flawed helper pasted a caller-controlled icon value into a Blade template string and compiled it, and because the toast helpers were public methods on the Livewire components, the sink was reachable by low-privilege callers and, on the public invitation page, without an account, giving remote code execution as the application user on a tool that holds the keys to the database credentials, SSH keys and object-store secrets it manages. VulDB rates the flaw 10.0 under CVSS 3.1 and CVSS 4.0; the advisory rates it 9.8 Critical under CVSS 3.1. This page gives operators the version and code readings that settle exposure, the invitation revocation and log hunt the advisory supports, the secret rotation that follows the upgrade, and the refused-call check the fix itself ships. The CVE is not in the CISA KEV catalog read for this page, and no source read here reports attacks in the wild.",
  "status": "published",
  "severity": "critical",
  "confidence": "high",
  "uncertainty": "The patched boundary rests on the record and the advisory's version fields (1.7.13), while the advisory's prose names 1.7.14 as the upgrade target; both are stated on the page. HOL did not reproduce the injection.",
  "firstObservedAt": "2026-09-07T00:00:00.000Z",
  "lastObservedAt": "2026-11-29T00:00:00.000Z",
  "publishedAt": "2026-11-30T11:54:00.258Z",
  "reviewedAt": "2026-11-30T11:48:05.173Z",
  "expiresAt": "2026-11-29T00:00:00.000Z",
  "reviewer": "HOL Guard Security Publishing",
  "sources": [
    {
      "id": "nvd-cve-2026-138223",
      "label": "NVD record for CVE-2026-138223 (VulDB CNA, CVSS 3.1 10.0, CVSS 4.0 10.0, CWE-791, fixed in 1.7.13)",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138223",
      "sourceType": "vulnerability_database",
      "observedAt": "2026-11-29T00:00:00.000Z"
    },
    {
      "id": "databasement-github-advisory-ghsa-76f6",
      "label": "Databasement GitHub security advisory GHSA-76f6-wp5v-23c2: unauthenticated remote code execution via template injection in toast notifications, CVSS 3.1 9.8, CWE-94",
      "url": "https://github.com/David-Crty/databasement/security/advisories/GHSA-76f6-wp5v-23c2",
      "sourceType": "vendor_advisory",
      "observedAt": "2026-09-07T00:00:00.000Z"
    },
    {
      "id": "databasement-fix-commit-713f71f",
      "label": "Fix commit 713f71f5336663493e8c4dc07e7f3e96a291775b (PR 605): toast helpers made protected, icon validated and bound as data in app/Traits/Toast.php",
      "url": "https://github.com/David-Crty/databasement/commit/713f71f5336663493e8c4dc07e7f3e96a291775b",
      "sourceType": "vendor_advisory",
      "observedAt": "2026-09-06T00:00:00.000Z"
    },
    {
      "id": "cisa-kev",
      "label": "CISA Known Exploited Vulnerabilities catalog, version 2026.11.27 (CVE absent)",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "sourceType": "government",
      "observedAt": "2026-11-27T00:00:00.000Z"
    }
  ],
  "artifacts": [
    {
      "id": "databasement-up-to-1-7-12-toast-php",
      "artifactClass": "package",
      "ecosystem": "github",
      "name": "David-Crty Databasement, app/Traits/Toast.php toast notification helper",
      "version": "up to 1.7.12",
      "defanged": false
    }
  ],
  "indicators": [],
  "timeline": [
    {
      "id": "fix-commit",
      "occurredAt": "2026-09-06T00:00:00.000Z",
      "eventType": "disclosure",
      "summary": "Fix commit 713f71f5336663493e8c4dc07e7f3e96a291775b landed on September 6, 2026 through pull request 605: the toast helpers in app/Traits/Toast.php became protected methods, and the icon is validated against a strict pattern with a fixed fallback and passed to the icon component as a bound attribute instead of being concatenated into template source.",
      "sourceIds": [
        "databasement-fix-commit-713f71f"
      ]
    },
    {
      "id": "advisory-and-release",
      "occurredAt": "2026-09-07T00:00:00.000Z",
      "eventType": "disclosure",
      "summary": "David-Crty published GitHub security advisory GHSA-76f6-wp5v-23c2 on September 7, 2026 (unauthenticated remote code execution via template injection in toast notifications, CVSS 3.1 9.8, CWE-94, proof of concept withheld), and release v1.7.14 followed the same day carrying a second security fix for invitation re-verification.",
      "sourceIds": [
        "databasement-github-advisory-ghsa-76f6"
      ]
    },
    {
      "id": "cve-published",
      "occurredAt": "2026-11-29T00:00:00.000Z",
      "eventType": "disclosure",
      "summary": "The CVE record for CVE-2026-138223 was published on November 29, 2026, naming Databasement up to 1.7.12, the toast function in app/Traits/Toast.php, CWE-791, the VulDB CVSS 3.1 and 4.0 scores of 10.0, and version 1.7.13 as the fix.",
      "sourceIds": [
        "nvd-cve-2026-138223"
      ]
    },
    {
      "id": "kev-absence-read",
      "occurredAt": "2026-11-30T00:00:00.000Z",
      "eventType": "first_observed",
      "summary": "Read in this run on November 30, 2026: the CISA KEV catalog at version 2026.11.27 holds 1,808 entries and no entry for CVE-2026-138223.",
      "sourceIds": [
        "cisa-kev"
      ]
    }
  ],
  "coverage": [
    {
      "assertionId": "guard-evidence-pack",
      "relationship": "provides_evidence",
      "limitation": "The campaign rests on the GitHub security advisory GHSA-76f6-wp5v-23c2 read firsthand, the fix commit 713f71f read firsthand including its Toast.php diff and its added security test, the NVD record for CVE-2026-138223 read firsthand through the NVD API, the v1.7.14 release notes, and the CISA KEV feed, all read in this run. HOL did not reproduce the injection. One coverage row stands for the single affected product, Databasement; the toast helper in app/Traits/Toast.php is the one affected component the record names."
    }
  ],
  "policies": [
    {
      "policyId": "upgrade-databasement-1-7-14",
      "purpose": "Upgrade Databasement to 1.7.14 or later (the CVE record's patched version is 1.7.13) on every instance running 1.7.12 or below, revoke outstanding unaccepted invitations, and rotate the managed database credentials, SSH keys and object-store secrets the instance can decrypt, because the toast helper in app/Traits/Toast.php compiled a caller-controlled icon value into a Blade template, giving remote code execution as the application user, reachable on a public page without an account (CVE-2026-138223)",
      "status": "available",
      "limitation": "Instances already at 1.7.13 carry the record's fix; the advisory's prose names 1.7.14 or later as the upgrade target. The policy names the current release so both fixes land."
    }
  ],
  "limitations": [
    "The CVE record (VulDB) scores the flaw 10.0 under CVSS 3.1 with changed scope; the GitHub advisory scores it 9.8 with unchanged scope. Both readings are carried on the page.",
    "The record and the advisory's version fields name 1.7.13 as the patched version; the advisory's prose directs operators to 1.7.14 or later, and 1.7.14 carries a second security fix.",
    "The advisory withholds its proof of concept; the mechanism is stated from the advisory and the fix commit's diff.",
    "No exploitation in the wild is reported by any source read for this page, and the CVE is absent from the CISA KEV catalog version read in this run."
  ],
  "correctionHref": "/guard/security/campaigns/cve-2026-138223-databasement-toast-template-injection/corrections"
}
