Live threats

All CVEs / Nanohttpd

CVE-2020-13697Nanohttpd

Medium 6.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Nanohttpd.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
nanohttpdnanohttpd≤ 2.3.1

Official sources

References

Links published by the sources. Open them with care.