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-1283 Vulnerability in npm package @builder.io/qwik
CVE-2016-10645 Vulnerability in npm package grunt-images
CVE-2022-38179 Vulnerability in maven package io.ktor:ktor-utils
CVE-2021-23446 Vulnerability in npm package handsontable
CVE-2021-26539 Vulnerability in maven package org.webjars.npm:sanitize-html