{
    "document": {
        "category": "csaf_base",
        "csaf_version": "2.0",
        "distribution": {
            "tlp": {
                "label": "WHITE"
            }
        },
        "lang": "en",
        "notes": [
            {
                "category": "legal_disclaimer",
                "text": "The Netherlands Cyber Security Center (henceforth: NCSC-NL) maintains this portal to enhance access to its information and vulnerabilities. The use of this information is subject to the following terms and conditions:\n\nThe vulnerabilities disclosed in this portal are gathered by NCSC-NL from a variety of open sources, which the user can retrieve from other platforms. NCSC-NL makes every reasonable effort to ensure that the content of this portal is kept up to date, and that it is accurate and complete. Nevertheless, NCSC-NL cannot entirely rule out the possibility of errors, and therefore cannot give any warranty in respect of its completeness, accuracy or real-time keeping up-to-date. NCSC-NL does not control nor guarantee the accuracy, relevance, timeliness or completeness of information obtained from these external sources. The vulnerabilities disclosed in this portal are intended solely for the convenience of professional parties to take appropriate measures to manage the risks posed to the cybersecurity. No rights can be derived from the information provided therein.\n\nNCSC-NL and the Kingdom of the Netherlands assume no legal liability or responsibility for any damage resulting from either the use or inability of use of the vulnerabilities disclosed in this portal. This includes damage resulting from the inaccuracy of incompleteness of the information contained in it.\nThe information on this page is subject to Dutch law. All disputes related to or arising from the use of this portal regarding the disclosure of vulnerabilities will be submitted to the competent court in The Hague. This choice of means also applies to the court in summary proceedings."
            }
        ],
        "publisher": {
            "category": "coordinator",
            "contact_details": "cert@ncsc.nl",
            "name": "National Cyber Security Centre",
            "namespace": "https://www.ncsc.nl/"
        },
        "title": "CVE-2026-27899",
        "tracking": {
            "current_release_date": "2026-03-28T18:48:05.289972Z",
            "generator": {
                "date": "2026-02-17T15:00:00Z",
                "engine": {
                    "name": "V.E.L.M.A",
                    "version": "1.7"
                }
            },
            "id": "CVE-2026-27899",
            "initial_release_date": "2026-02-26T01:38:39.020509Z",
            "revision_history": [
                {
                    "date": "2026-02-26T01:38:39.020509Z",
                    "number": "1",
                    "summary": "CVE created.| Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products created (1).| References created (1).| CWES updated (1)."
                },
                {
                    "date": "2026-02-26T01:38:50.459165Z",
                    "number": "2",
                    "summary": "NCSC Score created."
                },
                {
                    "date": "2026-02-26T02:24:55.280761Z",
                    "number": "3",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (1).| CWES updated (1)."
                },
                {
                    "date": "2026-02-26T02:25:01.107192Z",
                    "number": "4",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-02-26T07:34:58.573466Z",
                    "number": "5",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-02-26T11:26:54.348106Z",
                    "number": "6",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products created (52).| References created (3).| CWES updated (1)."
                },
                {
                    "date": "2026-02-26T14:13:26.858130Z",
                    "number": "7",
                    "summary": "Source created.| CVE status created. (valid)| EPSS created."
                },
                {
                    "date": "2026-02-26T14:13:28.927533Z",
                    "number": "8",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-02-26T16:46:57.254371Z",
                    "number": "9",
                    "summary": "Unknown change."
                },
                {
                    "date": "2026-02-26T22:39:39.269557Z",
                    "number": "10",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (6).| CWES updated (1)."
                },
                {
                    "date": "2026-02-27T00:12:52.427420Z",
                    "number": "11",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products created (1).| References created (5).| CWES updated (1)."
                },
                {
                    "date": "2026-03-02T19:25:11.803864Z",
                    "number": "12",
                    "summary": "Products created (1).| Product Identifiers created (1)."
                },
                {
                    "date": "2026-03-02T19:25:14.955178Z",
                    "number": "13",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-20T09:39:31.698232Z",
                    "number": "14",
                    "summary": "Source connected.| CVE status created. (valid)| EPSS created."
                },
                {
                    "date": "2026-03-25T18:15:21.938167Z",
                    "number": "15",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| References created (5)."
                },
                {
                    "date": "2026-03-28T18:47:54.273258Z",
                    "number": "16",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products created (2).| References created (7).| CWES updated (1)."
                }
            ],
            "status": "interim",
            "version": "16"
        }
    },
    "product_tree": {
        "branches": [
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/2.1.3",
                                "product": {
                                    "name": "vers:unknown/2.1.3",
                                    "product_id": "CSAFPID-5958876"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<2.1.3",
                                "product": {
                                    "name": "vers:unknown/<2.1.3",
                                    "product_id": "CSAFPID-5958877"
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "go/github.com/h44z/wg-portal"
                    },
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<2.1.3",
                                "product": {
                                    "name": "vers:unknown/<2.1.3",
                                    "product_id": "CSAFPID-5723423"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/>=0|<2.1.3",
                                "product": {
                                    "name": "vers:unknown/>=0|<2.1.3",
                                    "product_id": "CSAFPID-5733314"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.0",
                                "product": {
                                    "name": "vers:unknown/v1.0.0",
                                    "product_id": "CSAFPID-5727536"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.1",
                                "product": {
                                    "name": "vers:unknown/v1.0.1",
                                    "product_id": "CSAFPID-5727537"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.10",
                                "product": {
                                    "name": "vers:unknown/v1.0.10",
                                    "product_id": "CSAFPID-5727538"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.11",
                                "product": {
                                    "name": "vers:unknown/v1.0.11",
                                    "product_id": "CSAFPID-5727539"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.12",
                                "product": {
                                    "name": "vers:unknown/v1.0.12",
                                    "product_id": "CSAFPID-5727540"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.13",
                                "product": {
                                    "name": "vers:unknown/v1.0.13",
                                    "product_id": "CSAFPID-5727541"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.14",
                                "product": {
                                    "name": "vers:unknown/v1.0.14",
                                    "product_id": "CSAFPID-5727542"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.15",
                                "product": {
                                    "name": "vers:unknown/v1.0.15",
                                    "product_id": "CSAFPID-5727543"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.16",
                                "product": {
                                    "name": "vers:unknown/v1.0.16",
                                    "product_id": "CSAFPID-5727544"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.17",
                                "product": {
                                    "name": "vers:unknown/v1.0.17",
                                    "product_id": "CSAFPID-5727545"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.18",
                                "product": {
                                    "name": "vers:unknown/v1.0.18",
                                    "product_id": "CSAFPID-5727546"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.19",
                                "product": {
                                    "name": "vers:unknown/v1.0.19",
                                    "product_id": "CSAFPID-5727547"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.2",
                                "product": {
                                    "name": "vers:unknown/v1.0.2",
                                    "product_id": "CSAFPID-5727548"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.3",
                                "product": {
                                    "name": "vers:unknown/v1.0.3",
                                    "product_id": "CSAFPID-5727549"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.4",
                                "product": {
                                    "name": "vers:unknown/v1.0.4",
                                    "product_id": "CSAFPID-5727550"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.5",
                                "product": {
                                    "name": "vers:unknown/v1.0.5",
                                    "product_id": "CSAFPID-5727551"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.6",
                                "product": {
                                    "name": "vers:unknown/v1.0.6",
                                    "product_id": "CSAFPID-5727552"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.7",
                                "product": {
                                    "name": "vers:unknown/v1.0.7",
                                    "product_id": "CSAFPID-5727553"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.8",
                                "product": {
                                    "name": "vers:unknown/v1.0.8",
                                    "product_id": "CSAFPID-5727554"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v1.0.9",
                                "product": {
                                    "name": "vers:unknown/v1.0.9",
                                    "product_id": "CSAFPID-5727555"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.0",
                                "product": {
                                    "name": "vers:unknown/v2.0.0",
                                    "product_id": "CSAFPID-5727556"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.0-alpha.1",
                                "product": {
                                    "name": "vers:unknown/v2.0.0-alpha.1",
                                    "product_id": "CSAFPID-5727557"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.0-alpha.2",
                                "product": {
                                    "name": "vers:unknown/v2.0.0-alpha.2",
                                    "product_id": "CSAFPID-5727558"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.0-alpha.3",
                                "product": {
                                    "name": "vers:unknown/v2.0.0-alpha.3",
                                    "product_id": "CSAFPID-5727559"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.0-beta.1",
                                "product": {
                                    "name": "vers:unknown/v2.0.0-beta.1",
                                    "product_id": "CSAFPID-5727560"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.0-beta.2",
                                "product": {
                                    "name": "vers:unknown/v2.0.0-beta.2",
                                    "product_id": "CSAFPID-5727561"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.0-beta.3",
                                "product": {
                                    "name": "vers:unknown/v2.0.0-beta.3",
                                    "product_id": "CSAFPID-5727562"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.0-beta.4",
                                "product": {
                                    "name": "vers:unknown/v2.0.0-beta.4",
                                    "product_id": "CSAFPID-5727563"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.0-beta.5",
                                "product": {
                                    "name": "vers:unknown/v2.0.0-beta.5",
                                    "product_id": "CSAFPID-5727564"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.0-beta.6",
                                "product": {
                                    "name": "vers:unknown/v2.0.0-beta.6",
                                    "product_id": "CSAFPID-5727565"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.0-beta.7",
                                "product": {
                                    "name": "vers:unknown/v2.0.0-beta.7",
                                    "product_id": "CSAFPID-5727566"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.0-beta.8",
                                "product": {
                                    "name": "vers:unknown/v2.0.0-beta.8",
                                    "product_id": "CSAFPID-5727567"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.0-rc.1",
                                "product": {
                                    "name": "vers:unknown/v2.0.0-rc.1",
                                    "product_id": "CSAFPID-5727568"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.0-rc.2",
                                "product": {
                                    "name": "vers:unknown/v2.0.0-rc.2",
                                    "product_id": "CSAFPID-5727569"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.0-rc.3",
                                "product": {
                                    "name": "vers:unknown/v2.0.0-rc.3",
                                    "product_id": "CSAFPID-5727570"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.0-rc.4",
                                "product": {
                                    "name": "vers:unknown/v2.0.0-rc.4",
                                    "product_id": "CSAFPID-5727571"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.1",
                                "product": {
                                    "name": "vers:unknown/v2.0.1",
                                    "product_id": "CSAFPID-5727572"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.2",
                                "product": {
                                    "name": "vers:unknown/v2.0.2",
                                    "product_id": "CSAFPID-5727573"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.3",
                                "product": {
                                    "name": "vers:unknown/v2.0.3",
                                    "product_id": "CSAFPID-5727574"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.4",
                                "product": {
                                    "name": "vers:unknown/v2.0.4",
                                    "product_id": "CSAFPID-5727575"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.0.5",
                                "product": {
                                    "name": "vers:unknown/v2.0.5",
                                    "product_id": "CSAFPID-5727576"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.1.0",
                                "product": {
                                    "name": "vers:unknown/v2.1.0",
                                    "product_id": "CSAFPID-5727577"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.1.0-beta.1",
                                "product": {
                                    "name": "vers:unknown/v2.1.0-beta.1",
                                    "product_id": "CSAFPID-5727578"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.1.0-beta.2",
                                "product": {
                                    "name": "vers:unknown/v2.1.0-beta.2",
                                    "product_id": "CSAFPID-5727579"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.1.0-beta.3",
                                "product": {
                                    "name": "vers:unknown/v2.1.0-beta.3",
                                    "product_id": "CSAFPID-5727580"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.1.0-rc.1",
                                "product": {
                                    "name": "vers:unknown/v2.1.0-rc.1",
                                    "product_id": "CSAFPID-5727581"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.1.0-rc.2",
                                "product": {
                                    "name": "vers:unknown/v2.1.0-rc.2",
                                    "product_id": "CSAFPID-5727582"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.1.0-rc.3",
                                "product": {
                                    "name": "vers:unknown/v2.1.0-rc.3",
                                    "product_id": "CSAFPID-5727583"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.1.0-rc.4",
                                "product": {
                                    "name": "vers:unknown/v2.1.0-rc.4",
                                    "product_id": "CSAFPID-5727584"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.1.0-rc.5",
                                "product": {
                                    "name": "vers:unknown/v2.1.0-rc.5",
                                    "product_id": "CSAFPID-5727585"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.1.1",
                                "product": {
                                    "name": "vers:unknown/v2.1.1",
                                    "product_id": "CSAFPID-5727586"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v2.1.2",
                                "product": {
                                    "name": "vers:unknown/v2.1.2",
                                    "product_id": "CSAFPID-5727587"
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "wg-portal"
                    }
                ],
                "category": "vendor",
                "name": "h44z"
            },
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<2.1.3",
                                "product": {
                                    "name": "vers:unknown/<2.1.3",
                                    "product_id": "CSAFPID-5754432",
                                    "product_identification_helper": {
                                        "cpe": "cpe:2.3:a:wgportal:wireguard_portal:*:*:*:*:*:*:*:*"
                                    }
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "wireguard_portal"
                    }
                ],
                "category": "vendor",
                "name": "wgportal"
            }
        ]
    },
    "vulnerabilities": [
        {
            "cve": "CVE-2026-27899",
            "cwe": {
                "id": "CWE-863",
                "name": "Incorrect Authorization"
            },
            "notes": [
                {
                    "category": "description",
                    "text": "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.",
                    "title": "cveprojectv5 - https://www.cve.org/CVERecord?id=CVE-2026-27899"
                },
                {
                    "category": "description",
                    "text": "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.",
                    "title": "nvd - https://nvd.nist.gov/vuln/detail/CVE-2026-27899"
                },
                {
                    "category": "description",
                    "text": "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.",
                    "title": "osv - https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/GIT%2FCVE-2026-27899.json?alt=media"
                },
                {
                    "category": "description",
                    "text": "# Privilege Escalation to Admin via User Self-Update in wg-portal\n\n## Summary\n\nAny 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.\n\nTested against wg-portal v2.1.2 (Docker image `wgportal/wg-portal:v2`).\n\n## Root Cause\n\nWhen 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.\n\n## Impact\n\nAfter the exploit, the attacker has full admin access to the WireGuard VPN management portal. They can:\n\n- Read and modify every user account\n- Create, modify, and delete WireGuard peers on any interface\n- View WireGuard interface configurations\n- Disable or lock other user accounts\n- Access the full user list and their API tokens\n\n## Patches\nThe problem was fixed in the latest release, [v2.1.3](https://github.com/h44z/wg-portal/releases/tag/v2.1.3). The [docker images](https://hub.docker.com/r/wgportal/wg-portal) for the tag 'latest' built from the master branch also include the fix.",
                    "title": "github - https://github.com/advisories/GHSA-5rmx-256w-8mj9"
                },
                {
                    "category": "description",
                    "text": "# Privilege Escalation to Admin via User Self-Update in wg-portal\n\n## Summary\n\nAny 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.\n\nTested against wg-portal v2.1.2 (Docker image `wgportal/wg-portal:v2`).\n\n## Root Cause\n\nWhen 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.\n\n## Impact\n\nAfter the exploit, the attacker has full admin access to the WireGuard VPN management portal. They can:\n\n- Read and modify every user account\n- Create, modify, and delete WireGuard peers on any interface\n- View WireGuard interface configurations\n- Disable or lock other user accounts\n- Access the full user list and their API tokens\n\n## Patches\nThe problem was fixed in the latest release, [v2.1.3](https://github.com/h44z/wg-portal/releases/tag/v2.1.3). The [docker images](https://hub.docker.com/r/wgportal/wg-portal) for the tag 'latest' built from the master branch also include the fix.",
                    "title": "osv - https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGHSA-5rmx-256w-8mj9.json?alt=media"
                },
                {
                    "category": "description",
                    "text": "WireGuard Portal is Vulnerable to Privilege Escalation via User Self-Update to Admin Level in github.com/h44z/wg-portal.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/h44z/wg-portal before v2.1.3.",
                    "title": "osv - https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGO-2026-4566.json?alt=media"
                },
                {
                    "category": "description",
                    "text": "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.\n\nTested against wg-portal v2.1.2 (Docker image `wgportal/wg-portal:v2`).",
                    "title": "gitlab - https://gitlab.com/api/v4/projects/25847700/repository/files/go%2Fgithub.com%2Fh44z%2Fwg-portal%2FCVE-2026-27899.yml/raw"
                },
                {
                    "category": "other",
                    "text": "0.00071",
                    "title": "EPSS"
                },
                {
                    "category": "other",
                    "text": "5.0",
                    "title": "NCSC Score"
                },
                {
                    "category": "other",
                    "text": "Is related to CWE-863 (Incorrect Authorization)",
                    "title": "NCSC Score top increasing factors"
                },
                {
                    "category": "other",
                    "text": "The value of the most recent EPSS score",
                    "title": "NCSC Score top decreasing factors"
                }
            ],
            "product_status": {
                "fixed": [
                    "CSAFPID-5958876"
                ],
                "known_affected": [
                    "CSAFPID-5723423",
                    "CSAFPID-5727536",
                    "CSAFPID-5727537",
                    "CSAFPID-5727538",
                    "CSAFPID-5727539",
                    "CSAFPID-5727540",
                    "CSAFPID-5727541",
                    "CSAFPID-5727542",
                    "CSAFPID-5727543",
                    "CSAFPID-5727544",
                    "CSAFPID-5727545",
                    "CSAFPID-5727546",
                    "CSAFPID-5727547",
                    "CSAFPID-5727548",
                    "CSAFPID-5727549",
                    "CSAFPID-5727550",
                    "CSAFPID-5727551",
                    "CSAFPID-5727552",
                    "CSAFPID-5727553",
                    "CSAFPID-5727554",
                    "CSAFPID-5727555",
                    "CSAFPID-5727556",
                    "CSAFPID-5727557",
                    "CSAFPID-5727558",
                    "CSAFPID-5727559",
                    "CSAFPID-5727560",
                    "CSAFPID-5727561",
                    "CSAFPID-5727562",
                    "CSAFPID-5727563",
                    "CSAFPID-5727564",
                    "CSAFPID-5727565",
                    "CSAFPID-5727566",
                    "CSAFPID-5727567",
                    "CSAFPID-5727568",
                    "CSAFPID-5727569",
                    "CSAFPID-5727570",
                    "CSAFPID-5727571",
                    "CSAFPID-5727572",
                    "CSAFPID-5727573",
                    "CSAFPID-5727574",
                    "CSAFPID-5727575",
                    "CSAFPID-5727576",
                    "CSAFPID-5727577",
                    "CSAFPID-5727578",
                    "CSAFPID-5727579",
                    "CSAFPID-5727580",
                    "CSAFPID-5727581",
                    "CSAFPID-5727582",
                    "CSAFPID-5727583",
                    "CSAFPID-5727584",
                    "CSAFPID-5727585",
                    "CSAFPID-5727586",
                    "CSAFPID-5727587",
                    "CSAFPID-5733314",
                    "CSAFPID-5754432",
                    "CSAFPID-5958877"
                ]
            },
            "references": [
                {
                    "category": "external",
                    "summary": "Source - cveprojectv5",
                    "url": "https://www.cve.org/CVERecord?id=CVE-2026-27899"
                },
                {
                    "category": "external",
                    "summary": "Source raw - cveprojectv5",
                    "url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/27xxx/CVE-2026-27899.json"
                },
                {
                    "category": "external",
                    "summary": "Source - nvd",
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-27899"
                },
                {
                    "category": "external",
                    "summary": "Source raw - nvd",
                    "url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-27899"
                },
                {
                    "category": "external",
                    "summary": "Source - osv",
                    "url": "https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/GIT%2FCVE-2026-27899.json?alt=media"
                },
                {
                    "category": "external",
                    "summary": "Source - first",
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-27899"
                },
                {
                    "category": "external",
                    "summary": "Source raw - first",
                    "url": "https://api.first.org/data/v1/epss?limit=10000&offset=0"
                },
                {
                    "category": "external",
                    "summary": "Source - github",
                    "url": "https://github.com/advisories/GHSA-5rmx-256w-8mj9"
                },
                {
                    "category": "external",
                    "summary": "Source raw - github",
                    "url": "https://api.github.com/advisories/GHSA-5rmx-256w-8mj9"
                },
                {
                    "category": "external",
                    "summary": "Source - osv",
                    "url": "https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGHSA-5rmx-256w-8mj9.json?alt=media"
                },
                {
                    "category": "external",
                    "summary": "Source - first",
                    "url": "https://api.first.org/data/v1/epss?limit=10000&offset=0"
                },
                {
                    "category": "external",
                    "summary": "Source - osv",
                    "url": "https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGO-2026-4566.json?alt=media"
                },
                {
                    "category": "external",
                    "summary": "Source - gitlab",
                    "url": "https://gitlab.com/api/v4/projects/25847700/repository/files/go%2Fgithub.com%2Fh44z%2Fwg-portal%2FCVE-2026-27899.yml/raw"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; gitlab; nvd; osv",
                    "url": "https://github.com/h44z/wg-portal/security/advisories/GHSA-5rmx-256w-8mj9"
                },
                {
                    "category": "external",
                    "summary": "Reference - osv",
                    "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27899.json"
                },
                {
                    "category": "external",
                    "summary": "Reference - github; gitlab; osv",
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-27899"
                },
                {
                    "category": "external",
                    "summary": "Reference - github; gitlab; osv",
                    "url": "https://github.com/h44z/wg-portal/commit/fe4485037a25426446ced95050e9498f477bf71d"
                },
                {
                    "category": "external",
                    "summary": "Reference - github; gitlab; osv",
                    "url": "https://github.com/h44z/wg-portal/releases/tag/v2.1.3"
                },
                {
                    "category": "external",
                    "summary": "Reference - github; gitlab; osv",
                    "url": "https://hub.docker.com/layers/wgportal/wg-portal/v2.1.3/images/sha256-39acfab55598a74e561828b8cb639515ddc222d6c884996111f5ef235aba9e7b"
                },
                {
                    "category": "external",
                    "summary": "Reference - github; gitlab",
                    "url": "https://github.com/advisories/GHSA-5rmx-256w-8mj9"
                },
                {
                    "category": "external",
                    "summary": "Reference - gitlab",
                    "url": "https://github.com/h44z/wg-portal"
                }
            ],
            "scores": [
                {
                    "cvss_v3": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 8.8,
                        "baseSeverity": "HIGH"
                    },
                    "products": [
                        "CSAFPID-5723423",
                        "CSAFPID-5727536",
                        "CSAFPID-5727537",
                        "CSAFPID-5727538",
                        "CSAFPID-5727539",
                        "CSAFPID-5727540",
                        "CSAFPID-5727541",
                        "CSAFPID-5727542",
                        "CSAFPID-5727543",
                        "CSAFPID-5727544",
                        "CSAFPID-5727545",
                        "CSAFPID-5727546",
                        "CSAFPID-5727547",
                        "CSAFPID-5727548",
                        "CSAFPID-5727549",
                        "CSAFPID-5727550",
                        "CSAFPID-5727551",
                        "CSAFPID-5727552",
                        "CSAFPID-5727553",
                        "CSAFPID-5727554",
                        "CSAFPID-5727555",
                        "CSAFPID-5727556",
                        "CSAFPID-5727557",
                        "CSAFPID-5727558",
                        "CSAFPID-5727559",
                        "CSAFPID-5727560",
                        "CSAFPID-5727561",
                        "CSAFPID-5727562",
                        "CSAFPID-5727563",
                        "CSAFPID-5727564",
                        "CSAFPID-5727565",
                        "CSAFPID-5727566",
                        "CSAFPID-5727567",
                        "CSAFPID-5727568",
                        "CSAFPID-5727569",
                        "CSAFPID-5727570",
                        "CSAFPID-5727571",
                        "CSAFPID-5727572",
                        "CSAFPID-5727573",
                        "CSAFPID-5727574",
                        "CSAFPID-5727575",
                        "CSAFPID-5727576",
                        "CSAFPID-5727577",
                        "CSAFPID-5727578",
                        "CSAFPID-5727579",
                        "CSAFPID-5727580",
                        "CSAFPID-5727581",
                        "CSAFPID-5727582",
                        "CSAFPID-5727583",
                        "CSAFPID-5727584",
                        "CSAFPID-5727585",
                        "CSAFPID-5727586",
                        "CSAFPID-5727587",
                        "CSAFPID-5733314",
                        "CSAFPID-5754432",
                        "CSAFPID-5958877"
                    ]
                }
            ],
            "title": "CVE-2026-27899"
        }
    ]
}