{"id":"CVE-2018-3731","aliases":["EUVD-2018-0321","GHSA-rwv8-jvff-jq28"],"status":"published","title":"Path Traversal in public","description":"public node module suffers from a Path Traversal vulnerability due to lack of validation of filePath, which allows a malicious user to read content of any file with known path.","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":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.02007,"percentile":0.80944,"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-06-17T01:57:44Z","fixes":[{"ecosystem":"npm","package":"public","fixed_in":["0.1.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"public","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.1.2"},{"fixed":"0.1.3"}]}]},{"source":"osv","ecosystem":"npm","package":"public","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.3"}]}]}],"products":[{"vendor":"hackerone","product":"public node module"},{"vendor":"public.js_project","product":"public.js"}],"references":[{"url":"https://hackerone.com/reports/312918","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-3731","tags":["advisory"]},{"url":"https://github.com/tnantoka/public/commit/eae8ad8017b260f8667ded5e12801bd72b877af2","tags":["web"]},{"url":"https://github.com/advisories/GHSA-rwv8-jvff-jq28","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/571","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2018-3731","description":"public node module suffers from a Path Traversal vulnerability due to lack of validation of filePath, which allows a malicious user to read content of any file with known path.","status":"published","published":"2018-06-07T02:00:00Z","modified":"2024-09-16T17:23:52.4Z","cwes":["CWE-22"],"updated_at":"2026-11-02T14:35:05.619113Z"}],"euvd":[{"id":"EUVD-2018-0321","description":"public node module suffers from a Path Traversal vulnerability due to lack of validation of filePath, which allows a malicious user to read content of any file with known path.","status":"published","published":"2018-06-07T02:00:00Z","modified":"2024-09-16T17:23:52Z","updated_at":"2026-11-03T00:55:42.486621Z"}],"ghsa":[{"id":"GHSA-rwv8-jvff-jq28","title":"Path Traversal in public","description":"Versions of `public` before 0.1.3 are vulnerable to path traversal. This is due to lack of file path sanitization which could lead to any file the parent process has access to on the server to be read by malicious user.\n\n\n## Recommendation\n\nUpdate to version 0.1.3 or later.","status":"published","published":"2018-07-18T21:20:30Z","modified":"2023-01-31T01:37:12Z","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:36:29.100018Z"}],"nvd":[{"id":"CVE-2018-3731","description":"public node module suffers from a Path Traversal vulnerability due to lack of validation of filePath, which allows a malicious user to read content of any file with known path.","status":"published","published":"2018-06-07T02:29:08.723Z","modified":"2026-06-17T01:57:44.373Z","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":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:04:28.483469Z"}],"osv":[{"id":"GHSA-rwv8-jvff-jq28","title":"Path Traversal in public","description":"Versions of `public` before 0.1.3 are vulnerable to path traversal. This is due to lack of file path sanitization which could lead to any file the parent process has access to on the server to be read by malicious user.\n\n\n## Recommendation\n\nUpdate to version 0.1.3 or later.","status":"published","published":"2018-07-18T21:20:30Z","modified":"2023-11-08T04:00:17.793218Z","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:56.639206Z"}]}}
