CVE-2021-23797 json
Directory Traversal
published 2021-12-17 4 y ago modified 2026-06-17 4 mo ago also GHSA-hj3m-v758-jwx5 , EUVD-2022-0616
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 78%
- public exploits
- 0
- none known
Summary
All versions of package http-server-node are vulnerable to Directory Traversal via use of --path-as-is.
Exploit prediction
1.81% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-JS-HTTPSERVERNODE-1727656 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | http-server-node | <=1.0.2 |
no fix listed |
Affected products
- n/a http-server-node
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
snyk.io
/vuln/SNYK-JS-HTTPSERVERNODE-1727656
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-23797
advisory
-
github.com
/yan-loong/http-server
package
Sources
- CVE List CVE-2021-23797
- GitHub Advisory GHSA-hj3m-v758-jwx5
- NVD CVE-2021-23797
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.