The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-39112

CVE-2026-39112: Apartment Visitors Management XSS Flaw

CVE-2026-39112 is a cross-site scripting vulnerability in Apartment Visitors Management System V1.1 affecting the visname parameter. Authenticated attackers can inject malicious JavaScript. This article covers technical details, impact, and mitigation.

Published: April 23, 2026

CVE-2026-39112 Overview

A stored Cross-Site Scripting (XSS) vulnerability exists in Apartment Visitors Management System V1.1, a PHP-based web application developed by PHP Gurukul for managing apartment visitor records. The vulnerability is present in the visname parameter of visitors-form.php, which fails to properly sanitize user input before storing it in the database. When the malicious input is subsequently rendered in manage-newvisitors.php or visitor-detail.php, the injected JavaScript executes in the context of the victim's browser session.

Critical Impact

Authenticated attackers can inject malicious JavaScript that persists in the application database and executes when administrators or other users view visitor records, potentially leading to session hijacking, credential theft, or unauthorized actions.

Affected Products

  • Apartment Visitors Management System V1.1
  • PHP Gurukul Apartment Visitors Management System (PHP/MySQL)

Discovery Timeline

  • 2026-04-20 - CVE-2026-39112 published to NVD
  • 2026-04-20 - Last updated in NVD database

Technical Details for CVE-2026-39112

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. The application accepts visitor name input through the visname parameter in visitors-form.php without performing adequate input validation or output encoding. Since the malicious payload is stored in the database and rendered to other users who view visitor details, this constitutes a stored (persistent) XSS vulnerability.

The attack requires authentication to inject the payload, and user interaction is required for the payload to execute when a victim views the affected pages. The vulnerability allows attackers to affect users beyond their own session, creating a cross-scope impact where malicious scripts execute in other authenticated users' contexts.

Root Cause

The root cause is improper input sanitization in the visitors-form.php script. The visname parameter accepts user-supplied visitor names without filtering dangerous characters or HTML/JavaScript tags before storing them in the MySQL database. Additionally, when displaying visitor records in manage-newvisitors.php and visitor-detail.php, the application fails to apply proper output encoding, allowing stored script content to be rendered as executable code rather than harmless text.

Attack Vector

An authenticated attacker exploits this vulnerability by submitting a visitor registration form with a crafted JavaScript payload in the visitor name field. The malicious input bypasses input validation and is stored in the application database. When administrators or other users navigate to pages displaying visitor information, the stored script executes within their browser session with full access to their authentication cookies and DOM context.

The attack can be used to steal session tokens, redirect users to phishing sites, modify page content, or perform actions on behalf of the victim user. Since the payload persists in the database, it will affect all users who view the compromised visitor record until the malicious data is removed.

Detection Methods for CVE-2026-39112

Indicators of Compromise

  • Presence of <script> tags, event handlers (onerror, onload, onclick), or JavaScript URIs in visitor name database fields
  • Unusual characters or encoded sequences in the visname column of the visitors table
  • Reports of unexpected browser behavior or redirects when viewing visitor management pages
  • Session token theft or unauthorized administrative actions following visitor record views

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect XSS payloads in POST parameters targeting visitors-form.php
  • Enable detailed application logging for the visname parameter and alert on suspicious character patterns
  • Deploy browser-based Content Security Policy (CSP) headers to detect and report inline script execution attempts
  • Perform regular database audits scanning for HTML tags or JavaScript syntax in text fields

Monitoring Recommendations

  • Monitor HTTP request logs for patterns matching common XSS payloads in form submissions
  • Set up alerts for CSP violation reports indicating blocked inline script execution
  • Review access logs for manage-newvisitors.php and visitor-detail.php following suspicious visitor registrations
  • Track session anomalies that may indicate successful session hijacking

How to Mitigate CVE-2026-39112

Immediate Actions Required

  • Audit and sanitize existing visitor records in the database, removing any entries containing HTML or JavaScript content
  • Implement server-side input validation to reject or escape special characters in the visname parameter
  • Apply HTML entity encoding to all user-supplied data before rendering in web pages
  • Restrict access to the visitor management system to trusted users only until patches are applied

Patch Information

No official vendor patch has been identified for this vulnerability. Administrators should implement manual code modifications to add input validation and output encoding. For technical details and vulnerability information, refer to the GitHub CVEs Repository. The affected software can be reviewed at the PHP Gurukul Project Overview.

Workarounds

  • Add server-side input filtering using PHP's htmlspecialchars() or filter_input() functions on all user input
  • Implement Content Security Policy headers to prevent inline JavaScript execution: Content-Security-Policy: script-src 'self'
  • Use prepared statements with proper escaping for database operations
  • Consider deploying a reverse proxy or WAF with XSS protection rules in front of the application
bash
# Configuration example - Add CSP header in Apache .htaccess
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'"

# Or in PHP application code
header("Content-Security-Policy: default-src 'self'; script-src 'self'");

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechApartment Visitors Management System

  • SeverityMEDIUM

  • CVSS Score5.4

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub CVEs Repository

  • PHP Gurukul Download

  • PHP Gurukul Project Overview
  • Related CVEs
  • CVE-2026-39110: Apartment Visitors Management SQLi Flaw

  • CVE-2026-39109: Apartment Visitors Management SQLi Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

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.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English