CVE-2020-13697
MEDIUM 6.1CVSS 3.1NanoHTTPD Cross-site Scripting vulnerability
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.
- Published
- 23 Feb 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-pr5m-4w22-8483
- Sources
- NVDJSONOSV GHSA-pr5m-4w22-8483JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nanohttpd | nanohttpdcpe:2.3:a:nanohttpd:nanohttpd:*:*:*:*:*:*:*:* |
<= 2.3.1 | |
| OSV | Maven | org.nanohttpd:nanohttpd-nanolets | <= 2.3.1 |
References
- https://github.com/NanoHttpd/nanohttpd · Product, Third Party Advisory, PACKAGE
- https://www.vdoo.com/advisories · Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2020-13697 · ADVISORY
- 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
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 23 Feb 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 25 Feb 2021)