CVE-2026-5240

code-projects BloodBank Managing System admin_state.php cross site scripting

Published Mar 31, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
A security vulnerability has been detected in code-projects BloodBank Managing System 1.0. This affects an unknown part of the file /admin_state.php. The manipulation of the argument statename leads to cross site scripting. It is possible to initiate the attack remotely. The exploit has been disclosed publicly and may be used.

Analysis

AI-generated

Technical impact

A flaw in the /admin_state.php script of the code‑projects BloodBank Managing System allows an attacker to supply a crafted statename argument that is echoed back to the browser without proper encoding. This enables the execution of arbitrary scripts within the victim’s browser context, compromising confidentiality, integrity, and availability for users who view the affected page. The weakness aligns with CWE‑79 (Cross‑Site Scripting) and is also reflected in CWE‑94 (Code Injection) as the server processes the input before rendering.

Affected Systems

The vulnerability impacts the code‑projects BloodBank Managing System version 1.0. It resides specifically in the admin_state.php file where the statename parameter is handled. No other vendors or product versions are reported as affected based on the supplied information.

Risk and Exploitability

The CVSS base score of 5.3 indicates moderate severity. The description states that a remote attacker can initiate the attack by sending a crafted request, implying a public attack vector. EPSS data is not available and the vulnerability is not listed in the CISA KEV catalog, suggesting no confirmed widespread exploitation yet. Even so, the flaw is publicly disclosed and could affect any system exposed to the statename endpoint, warranting timely remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor’s official patch for BloodBank Managing System 1.0 if available
  • Sanitize the statename parameter on the server side by escaping or removing HTML and JavaScript characters before echoing it back
  • Ensure that any reflected output of statename is properly encoded in the appropriate HTML context
  • Restrict access to /admin_state.php so that only authenticated administrators can reach it, enforcing proper access controls
  • Deploy a web application firewall or configure a strict Content Security Policy to block malicious script execution

Generated by OpenCVE AI on April 1, 2026 at 08:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Code-projects
Code-projects blood Bank Management System
Vendors & Products Code-projects
Code-projects blood Bank Management System
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A security vulnerability has been detected in code-projects BloodBank Managing System 1.0. This affects an unknown part of the file /admin_state.php. The manipulation of the argument statename leads to cross site scripting. It is possible to initiate the attack remotely. The exploit has been disclosed publicly and may be used.
Title code-projects BloodBank Managing System admin_state.php cross site scripting
Weaknesses CWE-79
CWE-94
References
Metrics cvssV2_0

{'score': 5, 'vector': 'AV:N/AC:L/Au:N/C:N/I:P/A:N/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 4.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Apr 1, 2026, 7:03 PM
Reserved
Mar 31, 2026, 2:17 PM
Status
Deferred
Published
Apr 1, 2026, 12:16 AM
Modified
Jun 17, 2026, 10:58 AM