CVE-2026-27899 — Vulnerability in github.com/h44z/wg-portal
WireGuard Portal is Vulnerable to Privilege Escalation via User Self-Update to Admin Level
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.63%). Schedule for your next planned update.
Does your project use an affected github.com/h44z/wg-portal version?
Paste your go.sum to check it for CVE-2026-27899 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Privilege Escalation to Admin via User Self-Update in wg-portal
Summary
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.
Tested against wg-portal v2.1.2 (Docker image wgportal/wg-portal:v2).
Root Cause
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.
Impact
After the exploit, the attacker has full admin access to the WireGuard VPN management portal. They can:
- Read and modify every user account
- Create, modify, and delete WireGuard peers on any interface
- View WireGuard interface configurations
- Disable or lock other user accounts
- Access the full user list and their API tokens
Patches
The problem was fixed in the latest release, v2.1.3. The docker images for the tag 'latest' built from the master branch also include the fix.
Advisory Timeline
- First published February 26, 2026 (273 days ago).
- Last revised March 23, 2026 — 24 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/h44z/wg-portal@v2.1.3
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/h44z/wg-portal Go · Affected: All versions | 2.1.3 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/h44z/wg-portal/security/advisories/GHSA-5rmx-256w-8mj9WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-27899ADVISORY
- https://github.com/h44z/wg-portal/commit/fe4485037a25426446ced95050e9498f477bf71dWEB
- https://github.com/h44z/wg-portalPACKAGE
- https://github.com/h44z/wg-portal/releases/tag/v2.1.3WEB
- https://hub.docker.com/layers/wgportal/wg-portal/v2.1.3/images/sha256-39acfab55598a74e561828b8cb639515ddc222d6c884996111f5ef235aba9e7bWEB
Frequently Asked Questions
- What is CVE-2026-27899?
- WireGuard Portal is Vulnerable to Privilege Escalation via User Self-Update to Admin Level. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
- How do I check if my project is affected by CVE-2026-27899?
- CVE-2026-27899 affects github.com/h44z/wg-portal. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-27899 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 44.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-108262HIGH
DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885
- CVE-2026-130007HIGH
k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution