CVE-2026-96631: Cookie Attribute Injection in AdminNeo via X-Forwarded-Prefix
AdminNeo versions 4.6.0 through versions before 5.5.1 contain a cookie attribute injection vulnerability. AdminNeo prepends the unvalidated X-Forwarded-Prefix request header to REQUEST_URI, which is subsequently used to derive cookie paths. Its cookie() function manually constructs Set-Cookie headers without neutralizing semicolon delimiters in the derived path, allowing attacker-controlled prefix values to introduce additional cookie attributes. The tainted URI also influences PHP session cookie parameters through session_set_cookie_params(). Successful exploitation can alter cookie scope or security behavior, with potential consequences including session compromise and credential exposure.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Injected attributes can affect cookie Domain, Path, Secure, and SameSite behavior. Potentially affected cookies include the PHP session identifier, the encryption key used for database passwords stored in the session, and user preferences. The resulting risks include session hijacking, session fixation, and database credential exposure. These outcomes are conditional: demonstrated response-header manipulation does not establish successful browser acceptance or cookie exfiltration. Browsers reject Domain attributes targeting unrelated domains, and appended request-path text can invalidate injected attribute values. Actual impact depends on browser parsing, deployment domain relationships, proxy configuration, and access to session-stored encrypted credentials.
Mitigation
If you can’t patch tonight, do this now.
Configure reverse proxies to discard client-supplied X-Forwarded-Prefix values and provide only a trusted, deployment-defined static prefix. Ensure upstream proxy or middleware configuration cannot pass attacker-controlled prefix values to AdminNeo. In Traefik deployments, use trusted stripPrefix middleware rather than accepting client-controlled prefix headers.
Remediation
Patch, then assume compromise.
Upgrade adminneo-org/adminneo to version 5.5.1 or later. Code-level remediation includes validating X-Forwarded-Prefix before incorporating it into REQUEST_URI, rejecting cookie delimiters and HTTP header metacharacters, and validating the resulting cookie paths. Replace manual Set-Cookie header construction with PHP's setcookie() or setrawcookie() APIs while retaining appropriate input validation.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-96631 exploited in the wild?
- As of Oct 31, 2026, Mallory has no reports of CVE-2026-96631 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-96631?
- As of Oct 31, 2026, Mallory has found no public exploit for CVE-2026-96631.
- Is there a patch for CVE-2026-96631?
- Upgrade adminneo-org/adminneo to version 5.5.1 or later. Code-level remediation includes validating X-Forwarded-Prefix before incorporating it into REQUEST_URI, rejecting cookie delimiters and HTTP header metacharacters, and validating the resulting cookie paths.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.