---
id: CVE-2026-108740
title: >-
  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
summary: >-
  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…
severity: high
cvss: 8.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H'
cwe:
  - CWE-915
published: '2026-10-11'
updated: '2026-10-11'
sourceUpdated: '2026-10-11T13:17:18.527'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-108740'
references:
  - url: 'https://github.com/arp242/goatcounter'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/arp242/goatcounter/blob/7e91d8a9bdbb0dd48496e498c5680f8f3477a1b4/handlers/settings_user.go#L33-L99
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/arp242/goatcounter/blob/7e91d8a9bdbb0dd48496e498c5680f8f3477a1b4/user.go#L191-L218
    label: disclosure@vulncheck.com
  - url: >-
      https://hackmd.io/@haind03/goatcounter-user-pref-access-mass-assignment-20261011
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/goatcounter-through-2.7.0-privilege-escalation-via-user-pref-mass-assignment
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-10-11T13:51:17.035Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
