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-2020-15156 Vulnerability in npm package nodebb-plugin-blog-comments
CVE-2023-40342 Vulnerability in maven package org.jenkins-ci.plugins:flaky-test-handler
CVE-2019-5417 Vulnerability in npm package serve
CVE-2020-14968 Vulnerability in maven package org.webjars.npm:jsrsasign
CVE-2019-17566 Vulnerability in maven package org.apache.xmlgraphics:batik-svgrasterizer