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-22579 Vulnerability in npm package @sequelize/core
CVE-2020-2216 Vulnerability in maven package org.jenkins-ci.plugins:zephyr-for-jira-test-management
CVE-2023-0044 Vulnerability in maven package io.quarkus:quarkus-security-webauthn
CVE-2023-24998 Vulnerability in maven package org.apache.tomcat:tomcat-util
CVE-2019-1003033 Vulnerability in maven package org.jenkins-ci.plugins:groovy