{"id":"CVE-2020-15779","aliases":[],"url":"https://o3.security/vulnerability/CVE-2020-15779","summary":"Path Traversal in socket.io-file","details":"All versions of `socket.io-file` are vulnerable to Path Traversal. The package fails to sanitize user input and uses it to generate the file upload paths. The `socket.io-file::createFile` message contains a `name` option that is passed directly to `path.join()`.   It is possible to upload files to arbitrary folders on the server by sending relative paths on the `name` value, such as `../../test.js`.  The `uploadDir` and `rename` options can be used to define the file upload path.","published":"2020-07-07T19:24:47Z","modified":"2026-05-04T08:45:49.887196841Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"npm","name":"socket.io-file","fixedVersion":null}],"fix":null,"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15779"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-9h4g-27m8-qjrg"},{"type":"PACKAGE","url":"https://github.com/rico345100/socket.io-file"},{"type":"WEB","url":"https://www.npmjs.com/advisories/1519"},{"type":"WEB","url":"https://www.npmjs.com/package/socket.io-file"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-05-04T08:45:49.887196841Z"}}