ExpressGateway Cross-Site Scripting Vulnerability in REST API Endpoint

Vulnerability

A reflected cross-site scripting vulnerability has been identified in ExpressGateway's express-gateway version 1.16.10 and possibly earlier. The issue resides in the REST API endpoints '/users/:id' and '/apps/:id', where user-supplied input is not properly sanitized before being reflected in the response. This allows attackers to inject malicious JavaScript that is executed in the context of the victim's browser, potentially leading to session hijacking, unauthorized actions, or data exfiltration, especially if the target is an administrator.

Impact

Exploitation of this vulnerability allows for reflected cross-site scripting, where injected scripts are executed in the context of the user's browser.

Reproduction

To reproduce this vulnerability, send a request to the '/apps/:id' or '/users/:id' endpoint with an unsanitized payload in the ':id' parameter. The injected script will be reflected in the response and executed in the browser.

Remediation

It is recommended to implement proper output encoding for user-supplied data before including it in responses. Additionally, set a safe content-type for error responses that contain user-controlled data.

Added: Aug 18, 2025, 12:19 AM
Updated: Aug 18, 2025, 12:19 AM

Vulnerability Rating

Custom Algorithm
spread
0.8
impact
5.4
exploitability
7.7
remediation
8.3
relevance
0.4
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.