Vulnerability · Published Dec 17, 2021 · Assigned by snyk
CVE-2021-23797Directory Traversal
High 7.5
In plain English
A high-severity security flaw in http-server-node. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 79% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.8%top 21.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC
Official description
All versions of package http-server-node are vulnerable to Directory Traversal via use of --path-as-is.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu:24.04:LTS | node-http-server | no fix listed | UBUNTU-CVE-2021-23797 |
| Ubuntu:25.10 | node-http-server | no fix listed | UBUNTU-CVE-2021-23797 |
| Ubuntu:26.04:LTS | node-http-server | no fix listed | UBUNTU-CVE-2021-23797 |
| Ubuntu:26.10 | node-http-server | no fix listed | UBUNTU-CVE-2021-23797 |
| npm | http-server-node | no fix listed | GHSA-hj3m-v758-jwx5 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | http-server-node | 0 – before unspecified |
References
- https://snyk.io/vuln/SNYK-JS-HTTPSERVERNODE-1727656 x_refsource_MISC