CVE-2026-5015
Cross-Site Scripting in elecV2P /logs Endpoint Allows Remote Attack
Publication date: 2026-03-28
Last updated on: 2026-04-29
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| elecv2 | elecv2p | to 3.8.3 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. |
| CWE-94 | The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
CVE-2026-5015 is a reflected Cross-Site Scripting (XSS) vulnerability found in the elecV2P project, specifically in the handling of the `/logs` endpoint.
The vulnerability occurs because the `filename` parameter from the URL is directly inserted into the HTML response without proper escaping or encoding. This allows an attacker to inject malicious HTML or JavaScript code.
When a user visits a crafted URL containing a malicious `filename` parameter, the injected script executes in the user's browser, potentially leading to unauthorized actions or data exposure.
No authentication is required to exploit this vulnerability, and it can be triggered remotely.
How can this vulnerability impact me? :
This vulnerability can impact you by allowing attackers to execute arbitrary JavaScript code in the browsers of users who visit the vulnerable `/logs` endpoint with a malicious `filename` parameter.
- Attackers can perform actions such as stealing session cookies, redirecting users to malicious sites, or performing actions on behalf of the user.
- Since no authentication is required, any user accessing the endpoint can be targeted.
- This can lead to compromised user accounts, data theft, or further exploitation of the affected system.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by sending crafted HTTP GET requests to the `/logs` endpoint with a malicious `filename` parameter containing typical XSS payloads and observing if the payload is reflected unescaped in the HTML response.
For example, you can use curl to test the endpoint by injecting a payload such as `<img src=1 onerror=alert(9)>` in the filename parameter and checking if it appears in the response body:
- curl -i "http://target-server/logs/<img src=1 onerror=alert(9)>"
If the response contains the injected payload unescaped in the HTML content, it indicates the presence of the reflected XSS vulnerability.
Additionally, automated scripts or tools that scan for reflected XSS by injecting common payloads into URL parameters targeting `/logs` can be used to detect this issue.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include:
- Avoid exposing the `/logs` endpoint publicly if possible, restricting access to trusted users or internal networks.
- Implement input validation and output encoding on the `filename` parameter to ensure that any user-supplied input is properly escaped before being included in HTML responses.
- Use a web application firewall (WAF) to detect and block requests containing suspicious payloads targeting the `/logs` endpoint.
- Monitor logs for unusual requests to `/logs` with suspicious or encoded characters that may indicate exploitation attempts.
Since the project has not yet responded with a patch, these steps can help reduce the risk until an official fix is released.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
The provided information does not specify any direct impact of the CVE-2026-5015 vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.