{"id":"CVE-2020-15779","aliases":["CVE-2020-15779","GHSA-9h4g-27m8-qjrg"],"related":[],"kind":"vulnerability","state":"published","title":"Path Traversal in socket.io-file","summary":"A Path Traversal issue was discovered in the socket.io-file package through 2.0.31 for Node.js. The socket.io-file::createFile message uses path.join with ../ in the name option, and the uploadDir and rename options determine the path.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A Path Traversal issue was discovered in the socket.io-file package through 2.0.31 for Node.js. The socket.io-file::createFile message uses path.join with ../ in the name option, and the uploadDir and rename options determine the path.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se detectó un problema de Salto de Ruta en el paquete socket.io-file versiones hasta 2.0.31 para Node.js. El mensaje de socket.io-file::createFile usa path.join con ../ en la opción de nombre, y las opciones uploadDir y rename determinan la ruta","source":"nvd"}],"published":"2020-07-07T19:24:47.000Z","modified":"2026-06-17T02:57:10.290Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"2.0.31"}],"ecosystem":"npm","package":"socket.io-file","purl":"pkg:npm/socket.io-file","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"2.0.31"}],"vendor":"socket.io-file_project","product":"socket.io-file","cpe":"cpe:2.3:a:socket.io-file_project:socket.io-file:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://www.npmjs.com/package/socket.io-file","tags":["product","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rico345100/socket.io-file","tags":["package","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.npmjs.com/advisories/1519","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/advisories/GHSA-9h4g-27m8-qjrg","tags":["advisory","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15779","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-15779","url":"https://www.cve.org/CVERecord?id=CVE-2020-15779","licence":"CVE Terms of Use","modified":"2024-08-04T13:22:30.824Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9h4g-27m8-qjrg","url":"https://github.com/advisories/GHSA-9h4g-27m8-qjrg","licence":"CC-BY-4.0","modified":"2026-05-04T08:45:49.887Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-15779","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15779","licence":"Public domain","modified":"2026-06-17T02:57:10.290Z"}],"updatedAt":"2026-11-25T22:57:53.506Z","epss":{"score":0.01581,"percentile":0.76251,"date":"2026-12-01T12:00:22.000Z"}}