Skip to main content
Vulnerability Database/CVE-2026-105173

CVE-2026-105173: HR Management System XSS Vulnerability

CVE-2026-105173 is a cross-site scripting flaw in Human Resource Management System 1.0 affecting event creation functionality. Attackers can exploit this remotely to inject malicious scripts. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-105173 Overview

CVE-2026-105173 is a stored cross-site scripting (XSS) vulnerability in code-projects Human Resource Management 1.0. The flaw resides in the Event Creation component, specifically in /humanresourcemanagementsystem/src/store/EventStore.php. Attackers can manipulate the eventSubject parameter to inject arbitrary JavaScript that executes in the browser of any user viewing the stored event data. The attack is remotely exploitable and requires low privileges plus user interaction. A public exploit has been disclosed, raising the probability of opportunistic abuse against exposed instances. The weakness is classified under CWE-79: Improper Neutralization of Input During Web Page Generation.

Critical Impact

Authenticated attackers can inject persistent JavaScript through the eventSubject field, enabling session theft, UI defacement, and client-side action hijacking against HR system users.

Affected Products

  • code-projects Human Resource Management 1.0
  • /humanresourcemanagementsystem/src/store/EventStore.php (Event Creation component)
  • Deployments exposing the Event Creation workflow to authenticated users

Discovery Timeline

  • 2026-10-05 - CVE-2026-105173 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-105173

Vulnerability Analysis

The vulnerability is a stored cross-site scripting flaw in the Event Creation workflow of the Human Resource Management application. The EventStore.php handler accepts the eventSubject request parameter and persists it without sufficient output encoding or input sanitization. When any user later renders a view that includes the stored event subject, the attacker-supplied payload executes within the victim's browser session. Because the payload is stored server-side, exploitation is persistent and can affect every user who loads affected pages. The attack requires an authenticated session with privileges to create events and relies on another user viewing the malicious content. See the GitHub XSS Vulnerability Report for the published proof of concept.

Root Cause

The root cause is improper neutralization of user-controlled input before storage and rendering. The eventSubject field is written to the datastore and later emitted into HTML context without context-aware escaping. The application lacks both server-side input validation and output encoding, which permits HTML and JavaScript constructs to survive the write-then-render cycle intact.

Attack Vector

An authenticated attacker submits a crafted event creation request containing JavaScript payloads inside the eventSubject parameter. The payload persists in the HR database. When a legitimate user, such as an HR administrator, views the affected event listing, the script executes in that user's browser under the application's origin. This enables session cookie theft, forced actions against the HR workflow, redirection to attacker-controlled infrastructure, and credential harvesting through injected forms.

No verified exploit code is reproduced here. Technical details are described in the VulDB entry for CVE-2026-105173.

Detection Methods for CVE-2026-105173

Indicators of Compromise

  • HTTP POST requests to /humanresourcemanagementsystem/src/store/EventStore.php containing <script>, onerror=, onload=, or javascript: tokens in the eventSubject parameter.
  • Database rows in event storage tables where the subject field contains HTML tags or JavaScript event handlers.
  • Outbound browser requests from HR users to unknown external domains immediately after loading event pages.

Detection Strategies

  • Deploy web application firewall rules that inspect the eventSubject parameter for HTML tags, JavaScript handlers, and encoded script payloads.
  • Query stored event records for suspicious markup patterns and anomalous Unicode sequences used to bypass naive filters.
  • Correlate authenticated event-creation activity with subsequent anomalous session behavior from administrator accounts.

Monitoring Recommendations

  • Enable verbose web server logging for the Event Creation endpoint and retain request bodies for forensic review.
  • Monitor for Content Security Policy (CSP) violation reports once a restrictive policy is deployed.
  • Alert on repeated event submissions from a single account containing non-printable characters or HTML entity encoding.

How to Mitigate CVE-2026-105173

Immediate Actions Required

  • Restrict access to the Event Creation workflow to trusted accounts until a vendor patch is validated.
  • Audit existing event records and purge any entries containing HTML or JavaScript content in eventSubject.
  • Deploy a WAF signature that blocks script tags, event handler attributes, and javascript: URIs in the Event Creation request.

Patch Information

No vendor patch has been published at the time of writing. Monitor the code-projects resource hub and the VulDB vulnerability record 413405 for remediation updates. Operators should plan to apply context-aware output encoding to the eventSubject field and introduce server-side allowlist validation on event metadata.

Workarounds

  • Implement a reverse-proxy filter that strips HTML and JavaScript constructs from the eventSubject parameter before the request reaches EventStore.php.
  • Enforce a strict Content Security Policy that disables inline scripts and restricts script sources to trusted origins.
  • Require HR administrators to use isolated browser profiles when accessing the application to limit session reuse.
bash
# Example restrictive Content-Security-Policy header for the HR application
Header always set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'"
Header always set X-XSS-Protection "1; mode=block"
Header always set X-Content-Type-Options "nosniff"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.