{
  "id": "CVE-2026-77850",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-77850",
  "published_at": "2026-08-31T02:23:54.129Z",
  "title": "Stored XSS in AshAdmin relationship typeahead via unescaped label_field content",
  "vendor": "ash-project",
  "product": "ash_admin",
  "cvss": {
    "score": 8.4,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Stored Cross-site Scripting vulnerability in ash-project ash_admin executes attacker-supplied record content as script in an administrator's browser.\n\nThe relationship typeahead components AshAdmin.Components.Resource.RelationshipField and AshAdmin.Components.Resource.ManagedRelationshipSelectField highlight the matched search term by wrapping it in \u003cb\u003e tags and rendering the whole string with Phoenix.HTML.raw/1. The highlighted value is the destination record's label_field, ordinary database content that is often written by lower-privileged users. Because raw/1 disables output escaping for the entire string, a stored label such as \u003cimg src=x onerror=...\u003e runs as JavaScript in the admin's session as soon as a matching record appears in the dropdown, giving the attacker the admin's privileges over everything AshAdmin exposes. The fix HTML-escapes the label before inserting the highlight markup.\n\nThis issue affects ash_admin: from 0.13.0 before 1.3.1.",
  "cwe": "CWE-79",
  "cvss_by_source": {
    "cna": 8.4
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "ash-project",
        "product": "ash_admin",
        "ranges": [
          "\u003e= 0.13.0, \u003c 1.3.1"
        ],
        "fixed_in": [
          "1.3.1"
        ]
      },
      {
        "vendor": "ash-project",
        "product": "ash_admin",
        "ranges": [
          "\u003e= eb940f4d7d857ca49368ae847f586d01c6f5ad35, \u003c 07289191ccdac27dd70ab7c6413ed057bc7fdade"
        ],
        "fixed_in": [
          "07289191ccdac27dd70ab7c6413ed057bc7fdade"
        ]
      }
    ],
    "upgrade": [
      "Upgrade ash_admin to 1.3.1 or later.",
      "Upgrade ash_admin to 07289191ccdac27dd70ab7c6413ed057bc7fdade or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/ash-project/ash_admin/security/advisories/GHSA-m23x-576h-73w8"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/ash-project/ash_admin/commit/eb940f4d7d857ca49368ae847f586d01c6f5ad35"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/ash-project/ash_admin/commit/07289191ccdac27dd70ab7c6413ed057bc7fdade"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
