GitHub Advisoryadvisory · Maven
GHSA-pr5m-4w22-8483 NanoHTTPD Cross-site Scripting vulnerability
MEDIUM
Official page ↗
- Aliases
- CVE-2020-13697
- Ecosystem
- Maven
- Packages
- org.nanohttpd:nanohttpd-nanolets
- Severity
- Moderate
- Weaknesses
- CWE-79
- Reviewed
- 2021-02-24
Affected packages
• Maven org.nanohttpd:nanohttpd-nanolets: <= 2.3.1 (no fix yet)
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.
Related
Alias · CVE (1)
- CVE-2020-13697 An issue was discovered in RouterNanoHTTPD.java in NanoHTTPD through 2.3.1. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-13697 advisory
- https://github.com/NanoHttpd/nanohttpd package
- https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/nanolets/pom.xml web
- https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/nanolets/src/main/java/org/nanohttpd/router/RouterNanoHTTPD.java web
- https://www.vdoo.com/advisories/#CVE-2020-13697 web