CVE-2020-13697Nanohttpd
Medium 6.1 No auth needed
Follow: this CVE · Nanohttpd · Nanohttpd We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 57
- Auth required
- No
- Published
- Feb 23, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Nanohttpd.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.nanohttpd:nanohttpd-nanolets |
≤ 2.3.1 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-pr5m-4w22-8483). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| nanohttpd | nanohttpd | ≤ 2.3.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Product Third Party Advisory
- www.vdoo.com Third Party Advisory