Description
All versions of package http-server-node are vulnerable to Directory Traversal via use of --path-as-is.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | http-server-node | < unspecified | unspecified |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-http-server | No fix yet | — |
| Ubuntu 26.04 LTS | node-http-server | No fix yet | — |
| Ubuntu 25.10 | node-http-server | No fix yet | — |
| Ubuntu 24.04 LTS | node-http-server | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
dannyEndorTest/http-server-node ★ 0 · May 20, 2026
EXPOSURE demo target (http-server-node) — HOT baseline for CVE-2021-23797. See README.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | http-server-node | <= 1.0.2 | — | GHSA-hj3m-v758-jwx5 |