Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-13697
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:49 UTC · Revision 1
Source evidence
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.
osv:CVE-2020-13697
Complete source record
{
"id": "6457dcb1174f13e1894cb2513d90daec8248c2849a45acf29d96a4a660699c51",
"url": "https://osv.dev/vulnerability/CVE-2020-13697",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-13697",
"summary": "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.",
"evidence": "osv:CVE-2020-13697",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2020-13697",
"aliases": [
"CVE-2020-13697",
"GHSA-pr5m-4w22-8483"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nanohttpd/nanohttpd",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "16ed41b22c2739838ec7cb0e6ba26d52f4c8db3e"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:nanohttpd:nanohttpd:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.3.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"nanohttpd-project-2.3.1",
"nanohttpd-project-2.3.0",
"nanohttpd-project-2.2.0",
"Release-2.1.0",
"Release-2.0.5",
"Release-2.0.4",
"Release-2.0.3",
"Release-2.0.2",
"2.0.0-Release",
"v1.25"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-13697.json"
}
}
],
"modified": "2026-10-20T10:51:48.202752640Z",
"provider": "osv",
"references": [
"https://www.vdoo.com/advisories",
"https://github.com/NanoHttpd/nanohttpd"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2020-13697",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 382964,
"published_at": "2021-02-23T08:15:11.307+00:00"
}