Jcharis Machine-Learning-Web-Apps Reflected Cross-Site Scripting Vulnerability

Vulnerability

A reflected cross-site scripting vulnerability has been identified in Jcharis Machine-Learning-Web-Apps versions prior to a6996b634d98ccec4701ac8934016e8175b60eb5. The issue arises in the Jinja2 template rendering process, specifically within the 'render_template' function of 'app/app.py'. User input from the 'newtext' field is passed directly to the template without proper escaping, allowing the injection of arbitrary HTML or JavaScript. This vulnerability can be exploited remotely, and a public proof-of-concept is available.

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 POST request to the '/preview' endpoint with a payload that includes JavaScript, such as an image tag with an 'onerror' event. The injected script will execute in the browser, demonstrating the cross-site scripting vulnerability.

Added: Mar 11, 2026, 11:19 PM
Updated: Mar 11, 2026, 11:19 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
1.7
exploitability
8.0
remediation
0.0
relevance
3.8
threat
6.4
urgency
2.9
incentive
0.0

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