{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "2.7.0"
              },
              {
                "fixed": "2.7.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "DESCRIPTION"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "7e91d8a9bdbb0dd48496e498c5680f8f3477a1b4"
            }
          ],
          "repo": "https://github.com/arp242/goatcounter",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-915"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/108xxx/CVE-2026-108740.json"
  },
  "details": "GoatCounter through 2.7.0 contains a mass assignment privilege escalation vulnerability in the userPrefSave handler that allows logged-in users to modify protected account fields via form-encoded requests. Attackers with read-only access can POST user.access[all]=* and user.email_verified=true to /user/pref, bypassing readonly tags to gain superuser or admin access.",
  "id": "CVE-2026-108740",
  "modified": "2026-10-14T02:31:04.109298506Z",
  "published": "2026-10-11T12:19:44.911Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/108xxx/CVE-2026-108740.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://hackmd.io/@haind03/goatcounter-user-pref-access-mass-assignment-20261011"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-108740"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/goatcounter-through-2.7.0-privilege-escalation-via-user-pref-mass-assignment"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/arp242/goatcounter"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/arp242/goatcounter/blob/7e91d8a9bdbb0dd48496e498c5680f8f3477a1b4/handlers/settings_user.go#L33-L99"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/arp242/goatcounter/blob/7e91d8a9bdbb0dd48496e498c5680f8f3477a1b4/user.go#L191-L218"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "GoatCounter through 2.7.0 Privilege Escalation via /user/pref Mass Assignment"
}