{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0.13.0"
              },
              {
                "fixed": "1.3.1"
              }
            ],
            "source": [
              "DESCRIPTION",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "a68a28368606b1c48c1dc79d56b5b5ed8f3c202c"
            },
            {
              "fixed": "91da87c1c23cd6199ba1b0a1c8849a4c605130cc"
            },
            {
              "fixed": "07289191ccdac27dd70ab7c6413ed057bc7fdade"
            }
          ],
          "repo": "https://github.com/ash-project/ash_admin",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-m23x-576h-73w8"
  ],
  "database_specific": {
    "cna_assigner": "EEF",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77850.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "eb940f4d7d857ca49368ae847f586d01c6f5ad35"
          },
          {
            "fixed": "07289191ccdac27dd70ab7c6413ed057bc7fdade"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "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.",
  "id": "CVE-2026-77850",
  "modified": "2026-09-03T03:30:26.191115946Z",
  "published": "2026-08-31T02:23:54.129Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://cna.erlef.org/cves/CVE-2026-77850.html"
    },
    {
      "type": "WEB",
      "url": "https://github.com"
    },
    {
      "type": "WEB",
      "url": "https://osv.dev/vulnerability/EEF-CVE-2026-77850"
    },
    {
      "type": "WEB",
      "url": "https://repo.hex.pm"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77850.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ash-project/ash_admin/security/advisories/GHSA-m23x-576h-73w8"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-77850"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ash-project/ash_admin/commit/07289191ccdac27dd70ab7c6413ed057bc7fdade"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/ash-project/ash_admin"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Stored XSS in AshAdmin relationship typeahead via unescaped label_field content"
}