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-2017-9787 Vulnerability in maven package org.apache.struts:struts2-core
CVE-2021-36686 Vulnerability in npm package yapi-vendor
CVE-2016-10687 Vulnerability in npm package windows-selenium-chromedriver
CVE-2022-29172 Vulnerability in maven package org.webjars.npm:auth0-lock
CVE-2022-31183 Vulnerability in maven package co.fs2:fs2-io_sjs1_2.13