Skip to main content

CVE-2026-27899 — Vulnerability in github.com/h44z/wg-portal

HIGH

WireGuard Portal is Vulnerable to Privilege Escalation via User Self-Update to Admin Level

Published February 26, 2026Updated March 23, 2026Source: OSV

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.

Check my go.sum

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
Update github.com/h44z/wg-portal to 2.1.3 or later
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).

PackageFixed In
github.com/h44z/wg-portal Go · Affected: All versions2.1.3

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-269
    Improper Privilege ManagementMITRE
  • CWE-863
    Incorrect AuthorizationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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

CVSS Score
8.8

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.63%
EPSS percentile: 44.6

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

GHSA-5rmx-256w-8mj9
GO-2026-4566

Related CVEs

  • CVE-2026-108262
    HIGH

    DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885

  • CVE-2026-130007
    HIGH

    k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum