phpMyFAQ: Missing userHasPermission() in 4 API write endpoints (CVE-2026-24421 Incomplete Fix)
thorsten phpMyFAQ
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| thorsten/phpmyfaq Packagist |
|
|
| phpmyfaq/phpmyfaq Packagist |
|
|
thorsten phpMyFAQ
| Product | Affected | Fixed in |
|---|---|---|
| thorsten/phpmyfaq Packagist |
|
|
| phpmyfaq/phpmyfaq Packagist |
|
|
phpMyFAQ is an open source FAQ web application. Versions prior to 4.1.4 have Missing Authorization in the API CategoryController. CVE-2026-24421 addressed this in the BackupController by adding: $this->userHasPermission(PermissionType::BACKUP). The same fix was not applied to 4 other write endpoints in the public API. All 4 only call $this->hasValidToken() — which checks a shared API key header, rather than the individual user's role permissions. The following APIs are affected: POST /api/v4.0/category (CategoryController::create), POST /api/v4.0/faq (FaqController::create), PUT /api/v4.0/faq (FaqController::update), and POST /api/v4.0/question (QuestionController::create). This issue has been fixed in version 4.1.4.
From the CVE record · GitHub_M
In phpMyFAQ versions before 4.1.4, four public API write endpoints check a shared API key but not the individual user's role permissions. An attacker with a valid API key can create categories, FAQs, and questions, or update FAQs, without the required role permissions.
Anyone running phpMyFAQ before 4.1.4, including the Packagist packages thorsten/phpmyfaq and phpmyfaq/phpmyfaq, should check their installation.