# CVE-2021-23797: Directory Traversal

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.81%, higher than 79% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-17T20:05:11.548Z
- Modified: 2026-06-17T03:38:53.167Z
- Also known as: GHSA-hj3m-v758-jwx5
- Weaknesses: CWE-22
- Assigned by: snyk

## Description

All versions of package http-server-node are vulnerable to Directory Traversal via use of --path-as-is.

(As written by CVE List.)

## Affected

- http-server-node: before unspecified
- http-server-node (npm): up to 1.0.2
- http-server-node_project http-server-node: no versions given

## Every score

- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-HTTPSERVERNODE-1727656> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23797> (advisory)
- <https://github.com/yan-loong/http-server> (package)

## Sources

- CVE List: [CVE-2021-23797](https://www.cve.org/CVERecord?id=CVE-2021-23797), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-hj3m-v758-jwx5](https://github.com/advisories/GHSA-hj3m-v758-jwx5), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-23797](https://nvd.nist.gov/vuln/detail/CVE-2021-23797), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23797 · Whole record: https://cve.day/CVE-2021-23797.json · Rebuilt by cve.day 2026-11-25T22:58:06.072Z
