Skip to main content

Pharmacy Management System CVE-2026-31070

| EUVDEUVD-2026-30945 CRITICAL
Improper Privilege Management (CWE-269)
2026-05-19 mitre GHSA-qg5w-7c3j-rfjc
9.8
CVSS 3.1 · Vendor: mitre
Share

Severity by source

Vendor (mitre) PRIMARY
9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (mitre) · only source for this CVE.

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Analysis Generated
May 20, 2026 - 14:23 vuln.today
CVSS changed
May 20, 2026 - 14:22 NVD
9.8 (CRITICAL)
CVE Published
May 19, 2026 - 00:00 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

The LalanaChami Pharmacy Management System (commit 5c3d028) allows unauthenticated remote attackers to escalate privileges by self-assigning an administrative role during registration. The /api/user/signup endpoint fails to validate the role parameter in the request body

AnalysisAI

Privilege escalation in LalanaChami Pharmacy Management System (commit 5c3d028) allows any remote unauthenticated attacker to register a new account with administrator privileges by simply including a role parameter in the signup request body. The /api/user/signup endpoint trusts client-supplied role values without server-side validation, granting full administrative access in a single HTTP call. No public exploit identified at time of analysis, and EPSS is very low (0.04%), but the trivial nature of the flaw means weaponization is straightforward once anyone notices the gist already documenting the issue.

Technical ContextAI

The affected software is a Node.js/Express-based pharmacy application maintained on GitHub under LalanaChami/Pharmacy-Mangment-System. The vulnerability falls under CWE-269 (Improper Privilege Management): the signup route handler in backend/routes/user.js accepts the request body verbatim and persists whatever role string the client supplies, rather than forcing newly registered users to a default low-privilege role and gating administrative roles behind an authenticated, authorized provisioning flow. This is a classic mass-assignment / parameter tampering issue where the server-side data model exposes a privileged attribute to an untrusted input boundary.

RemediationAI

No vendor-released patch identified at time of analysis - the project does not appear to have published a tagged fix release. Operators should immediately modify backend/routes/user.js to strip or ignore any client-supplied role field on the /api/user/signup endpoint and force newly created accounts to a hardcoded non-privileged default role, with administrative role assignment handled only by an authenticated admin via a separate endpoint with proper authorization checks. As compensating controls until code is patched: place the signup endpoint behind an authenticated reverse-proxy ACL or remove the endpoint entirely if self-registration is not required (side effect: blocks all new user onboarding), or add a WAF/middleware rule that rejects POSTs to /api/user/signup containing a 'role' key in the JSON body (side effect: may break legitimate clients if they ever needed to send role data, though they should not). Audit the user table for any accounts created with administrative roles since deployment and revoke or delete unauthorized admins. Reference advisories: https://nvd.nist.gov/vuln/detail/CVE-2026-31070 and the disclosure gist https://gist.github.com/nedlir/22bf6d1a3a07209be3e343744bc81d51.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

Share

CVE-2026-31070 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy