CVE-2026-31071

Unauthenticated API Access Exposing User Data and Allowing Inventory Modification

Published May 19, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
API endpoints in LalanaChami Pharmacy Management System (commit 5c3d028) lack authentication middleware. Unauthenticated remote attackers can exploit this to dump all user records (including bcrypt password hashes) via /api/user/getUserData, modify drug inventory, and access private medical prescription data via /api/doctorOder.

Analysis

AI-generated

Technical impact

The vulnerability stems from missing authentication checks on three API endpoints in the LalanaChami Pharmacy Management System, specifically /api/user/getUserData, /api/doctorOder, and associated routes. Unauthenticated remote attackers can issue requests to these endpoints and retrieve a complete dump of all user records, including bcrypt password hashes. They can also modify drug inventory data and access private medical prescription information, effectively compromising both confidentiality and integrity of the system’s sensitive data.

Affected Systems

The affected system is the LalanaChami Pharmacy Management System, as demonstrated in the backend/routes code at commit 5c3d028. No specific version numbers are listed beyond this commit, indicating that any release containing these code paths up to and including this commit is vulnerable.

Risk and Exploitability

The lack of authentication middleware allows attackers to exploit the endpoints without any prerequisites, making the attack path trivial. The CVSS score of 9.1 indicates severe impact, while the EPSS score of < 1% suggests low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog, yet the exposure of full user data, inventory control, and prescription records would represent a high-impact breach. The risk is therefore significant, especially for systems exposed to the public internet or untrusted networks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the updated version of the Pharmacy Management System that implements authentication middleware for all user and inventory endpoints.
  • Restrict network access to the API by implementing IP whitelisting or a VPN so that only trusted internal hosts can reach the vulnerable endpoints.
  • Audit all API routes in the codebase to confirm proper authentication and authorization checks are present and enforce least-privilege access control for medical data.

Generated by OpenCVE AI on May 20, 2026 at 15:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Unauthenticated API Access Exposing User Data and Allowing Inventory Modification
Type Values Removed Values Added
Weaknesses CWE-306
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Lalanachami
Lalanachami pharmacy Management System
Vendors & Products Lalanachami
Lalanachami pharmacy Management System
Type Values Removed Values Added
Description API endpoints in LalanaChami Pharmacy Management System (commit 5c3d028) lack authentication middleware. Unauthenticated remote attackers can exploit this to dump all user records (including bcrypt password hashes) via /api/user/getUserData, modify drug inventory, and access private medical prescription data via /api/doctorOder.
References
Weaknesses
  • CWE-306

    Missing Authentication for Critical Function

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
May 20, 2026, 1:59 PM
Reserved
Mar 9, 2026, 12:00 AM
Status
Deferred
Published
May 19, 2026, 4:16 PM
Modified
Jul 24, 2026, 12:10 PM