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-2019-10280 Vulnerability in maven package org.jenkins-ci.plugins:assembla-auth
CVE-2018-1258 Vulnerability in maven package org.springframework:spring-core
CVE-2022-25860 Vulnerability in maven package org.webjars.npm:simple-git
CVE-2022-27202 Vulnerability in maven package org.jenkins-ci.plugins:extended-choice-parameter
CVE-2017-20162 Vulnerability in maven package org.webjars.npm:ms