Description
An issue was discovered in RouterNanoHTTPD.java in NanoHTTPD through 2.3.1. The GeneralHandler class implements a basic GET handler that prints debug information as an HTML page. Any web server that extends this class without implementing its own GET handler is vulnerable to reflected XSS, because the GeneralHandler GET handler prints user input passed through the query string without any sanitization.
Remediation
References
https://github.com/NanoHttpd/nanohttpd
https://www.vdoo.com/advisories
Related Vulnerabilities
CVE-2023-41058 Vulnerability in npm package parse-server
CVE-2019-10787 Vulnerability in npm package im-resize
CVE-2020-28448 Vulnerability in npm package multi-ini
CVE-2017-16137 Vulnerability in maven package org.webjars.npm:debug
CVE-2022-24839 Vulnerability in maven package net.sourceforge.nekohtml:nekohtml