Vulnerabilities (CVE)

Filtered by vendor Nanohttpd Subscribe
Filtered by product Nanohttpd
Total 2 CVE
CVE Vendors Products Updated CVSS v2 CVSS v3
CVE-2022-21230 1 Nanohttpd 1 Nanohttpd 2024-02-28 2.1 LOW 5.5 MEDIUM
This affects all versions of package org.nanohttpd:nanohttpd. Whenever an HTTP Session is parsing the body of an HTTP request, the body of the request is written to a RandomAccessFile when the it is larger than 1024 bytes. This file is created with insecure permissions that allow its contents to be viewed by all users on the host machine. **Workaround:** Manually specifying the -Djava.io.tmpdir= argument when launching Java to set the temporary directory to a directory exclusively controlled by the current user can fix this issue.
CVE-2020-13697 1 Nanohttpd 1 Nanohttpd 2024-02-28 4.3 MEDIUM 6.1 MEDIUM
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.