{"id":"CVE-2018-3712","aliases":["EUVD-2018-0308","GHSA-q2qh-cgc2-qhr3"],"status":"published","title":"Directory Traversal in serve","description":"serve node module before 6.4.9 suffers from a Path Traversal vulnerability due to not handling %2e (.) and %2f (/) and allowing them in paths, which allows a malicious user to view the contents of any directory with known path.","severity":{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.0179,"percentile":0.78512,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2018-06-07T02:00:00Z","modified":"2026-10-20T10:50:27Z","fixes":[{"ecosystem":"npm","package":"serve","fixed_in":["6.4.9"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"serve","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.4.8"},{"fixed":"6.4.9"}]}]},{"source":"osv","ecosystem":"npm","package":"serve","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"6.4.9"}]}]}],"products":[{"vendor":"hackerone","product":"serve node module"},{"vendor":"zeit","product":"serve"}],"references":[{"url":"https://github.com/zeit/serve/pull/316","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://hackerone.com/reports/307666","tags":["x_refsource_MISC","x_transferred","Exploit","Technical Description","evidence","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-3712","tags":["advisory"]},{"url":"https://github.com/vercel/serve/commit/6adad6881c61991da61ebc857857c53409544575","tags":["web"]},{"url":"https://github.com/advisories/GHSA-q2qh-cgc2-qhr3"},{"url":"https://github.com/vercel/serve","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2018-3712","description":"serve node module before 6.4.9 suffers from a Path Traversal vulnerability due to not handling %2e (.) and %2f (/) and allowing them in paths, which allows a malicious user to view the contents of any directory with known path.","status":"published","published":"2018-06-07T02:00:00Z","modified":"2024-09-17T00:05:56.311Z","cwes":["CWE-22"],"updated_at":"2026-11-02T14:35:05.262903Z"}],"euvd":[{"id":"EUVD-2018-0308","description":"serve node module before 6.4.9 suffers from a Path Traversal vulnerability due to not handling %2e (.) and %2f (/) and allowing them in paths, which allows a malicious user to view the contents of any directory with known path.","status":"published","published":"2018-06-07T02:00:00Z","modified":"2024-09-17T00:05:56Z","updated_at":"2026-11-03T00:29:02.472621Z"}],"ghsa":[{"id":"GHSA-q2qh-cgc2-qhr3","title":"Directory Traversal in serve","description":"Affected versions of `serve` do not properly handle `%2e` (.) and `%2f` (/) characters, and allow the, characters to be used in paths. This can be used to traverse the directory tree and list content of any directory the user running the process has access to.\n\nMitigating factors:\nThis vulnerability only allows listing of directory contents and does not allow reading of arbitrary files.\n\n\n## Recommendation\n\nUpdate to version 6.4.9 later.","status":"published","published":"2018-07-27T17:07:50Z","modified":"2023-04-21T19:00:43Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:36:51.39133Z"}],"nvd":[{"id":"CVE-2018-3712","description":"serve node module before 6.4.9 suffers from a Path Traversal vulnerability due to not handling %2e (.) and %2f (/) and allowing them in paths, which allows a malicious user to view the contents of any directory with known path.","status":"published","published":"2018-06-07T02:29:07.897Z","modified":"2026-06-17T01:57:42.443Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4,"vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:04:28.483469Z"}],"osv":[{"id":"CVE-2018-3712","description":"serve node module before 6.4.9 suffers from a Path Traversal vulnerability due to not handling %2e (.) and %2f (/) and allowing them in paths, which allows a malicious user to view the contents of any directory with known path.","status":"published","published":"2018-06-07T02:29:07.897Z","modified":"2026-10-20T10:50:27.256495733Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:09.442568Z"},{"id":"GHSA-q2qh-cgc2-qhr3","title":"Directory Traversal in serve","description":"Affected versions of `serve` do not properly handle `%2e` (.) and `%2f` (/) characters, and allow the, characters to be used in paths. This can be used to traverse the directory tree and list content of any directory the user running the process has access to.\n\nMitigating factors:\nThis vulnerability only allows listing of directory contents and does not allow reading of arbitrary files.\n\n\n## Recommendation\n\nUpdate to version 6.4.9 later.","status":"published","published":"2018-07-27T17:07:50Z","modified":"2023-11-08T04:00:16.627483Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:54.055966Z"}]}}
