{"id":"CVE-2021-23797","aliases":["EUVD-2022-0616","GHSA-hj3m-v758-jwx5","UBUNTU-CVE-2021-23797"],"status":"published","title":"Directory Traversal","description":"All versions of package http-server-node are vulnerable to Directory Traversal via use of --path-as-is.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.0181,"percentile":0.78794,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-22"],"published":"2021-12-17T20:05:11Z","modified":"2026-10-17T12:57:11Z","exploits":[{"source":"pocgithub","id":"dannyEndorTest/http-server-node","title":"dannyEndorTest/http-server-node","date":"2026-05-20","url":"https://github.com/dannyEndorTest/http-server-node"}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"http-server-node","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.0.2"}]}]},{"source":"osv","ecosystem":"npm","package":"http-server-node","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.0.2"}]}]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"node-http-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["14.1.1+~cs3.14.34-2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"node-http-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["14.1.1+~cs3.14.34-4","14.1.1+~cs3.16.36-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"node-http-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["14.1.1+~cs3.16.39-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"node-http-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["14.1.1+~cs3.16.36-1","14.1.1+~cs3.16.39-1"]}],"products":[{"vendor":"http-server-node_project","product":"http-server-node"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-HTTPSERVERNODE-1727656","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23797","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-hj3m-v758-jwx5"},{"url":"https://github.com/yan-loong/http-server","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2021-23797","tags":["report"]},{"url":"https://security.snyk.io/vuln/SNYK-JS-HTTPSERVERNODE-1727656","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-23797","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-23797","title":"Directory Traversal","description":"All versions of package http-server-node are vulnerable to Directory Traversal via use of --path-as-is.","status":"published","published":"2021-12-17T20:05:11.548Z","modified":"2024-09-16T19:30:59.841Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:33:00.819444Z"}],"euvd":[{"id":"EUVD-2022-0616","description":"All versions of package http-server-node are vulnerable to Directory Traversal via use of --path-as-is.","status":"published","published":"2021-12-17T20:05:11Z","modified":"2024-09-16T19:30:59Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-03T00:55:22.355392Z"}],"ghsa":[{"id":"GHSA-hj3m-v758-jwx5","title":"Path Traversal in http-server-node","description":"All versions of package http-server-node are vulnerable to Directory Traversal via use of `--path-as-is`.","status":"published","published":"2022-01-05T15:02:43Z","modified":"2023-09-11T22:36:15Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:37:04.447845Z"}],"nvd":[{"id":"CVE-2021-23797","description":"All versions of package http-server-node are vulnerable to Directory Traversal via use of --path-as-is.","status":"published","published":"2021-12-17T20:15:08.24Z","modified":"2026-06-17T03:38:53.167Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:07:02.566991Z"}],"osv":[{"id":"GHSA-hj3m-v758-jwx5","title":"Path Traversal in http-server-node","description":"All versions of package http-server-node are vulnerable to Directory Traversal via use of `--path-as-is`.","status":"published","published":"2022-01-05T15:02:43Z","modified":"2023-11-08T04:05:13.364917Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:49.28217Z"},{"id":"UBUNTU-CVE-2021-23797","description":"All versions of package http-server-node are vulnerable to Directory Traversal via use of --path-as-is.","status":"published","published":"2021-12-17T20:15:00Z","modified":"2026-10-17T12:57:11.825534213Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:26.779273Z"}]}}
