---
id: CVE-2026-111895
title: >-
  phpMyFAQ 3.2.0 before 4.0.0 and 4.0.2 before 4.2.0-beta Account Takeover via
  Entra ID preferred_username
summary: >-
  phpMyFAQ 3.2.0 before 4.0.0 and 4.0.2 before 4.2.0-beta contains an
  authentication bypass in its Microsoft Entra ID login flow, which links users
  by the mutable preferred_username claim and whose AuthEntraId::create()
  ignores the duplica…
severity: medium
cvss: 6.8
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N'
cvssSource: cna
cwe:
  - CWE-287
vendor: thorsten
product: phpMyFAQ
affected:
  - phpMyFAQ >= 3.2.0 < 4.0.0
  - phpMyFAQ >= 4.0.2 < 4.2.0-beta
published: '2026-10-17'
updated: '2026-10-17'
sourceUpdated: '2026-10-17T18:46:18.581Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-111895'
references:
  - url: >-
      https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-6hhv-gc4g-f4r7
    label: GitHub Security Advisory (GHSA-6hhv-gc4g-f4r7)
  - url: >-
      https://www.vulncheck.com/advisories/phpmyfaq-3.2.0-before-4.0.0-and-4.0.2-before-4.2.0-beta-account-takeover-via-entra-id-preferred-username
    label: >-
      VulnCheck Advisory: phpMyFAQ 3.2.0 before 4.0.0 and 4.0.2 before
      4.2.0-beta Account Takeover via Entra ID preferred_username
tags:
  - cve.org
ingestedAt: '2026-10-17T19:08:56.936Z'
---

## Overview

phpMyFAQ 3.2.0 before 4.0.0 and 4.0.2 before 4.2.0-beta contains an authentication bypass in its Microsoft Entra ID login flow, which links users by the mutable preferred_username claim and whose AuthEntraId::create() ignores the duplicate-login exception while continuing with the existing local account. Attackers controlling an Entra identity in the configured tenant with a matching preferred_username can take over that local account, including super-admin accounts.

## Affected

- `phpMyFAQ >= 3.2.0 < 4.0.0`
- `phpMyFAQ >= 4.0.2 < 4.2.0-beta`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
