{"id":"CVE-2023-26111","aliases":["CVE-2023-26111","GHSA-5g97-whc9-8g7j"],"related":[],"kind":"vulnerability","state":"published","title":"node-static and @nubosoftware/node-static vulnerable to Directory Traversal","summary":"All versions of the package @nubosoftware/node-static; all versions of the package node-static are vulnerable to Directory Traversal due to improper file path sanitization in the startsWith() method in the servePath function.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"All versions of the package @nubosoftware/node-static; all versions of the package node-static are vulnerable to Directory Traversal due to improper file path sanitization in the startsWith() method in the servePath function.","source":"cvelist"},{"lang":"en","text":"node-static and its fork, @nubosoftware/node-static, are vulnerable to Directory Traversal due to improper file path sanitization in the startsWith() method in the servePath function.","format":"markdown","source":"ghsa"}],"published":"2023-03-06T05:00:03.346Z","modified":"2026-06-17T05:42:42.057Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/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:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"*","status":"affected"}],"product":"@nubosoftware/node-static","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"*","status":"affected"}],"product":"node-static","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.7.11"}],"ecosystem":"npm","package":"node-static","purl":"pkg:npm/node-static","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.7.11"}],"ecosystem":"npm","package":"@nubosoftware/node-static","purl":"pkg:npm/%40nubosoftware/node-static","source":"ghsa"},{"ranges":[],"vendor":"@nubosoftware/node-static_project","product":"@nubosoftware/node-static","cpe":"cpe:2.3:a:\\@nubosoftware\\/node-static_project:\\@nubosoftware\\/node-static:-:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[],"vendor":"node-static_project","product":"node-static","cpe":"cpe:2.3:a:node-static_project:node-static:-:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-NUBOSOFTWARENODESTATIC-3149927","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.snyk.io/vuln/SNYK-JS-NODESTATIC-3149928","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://gist.github.com/lirantal/c80b28e7bee148dc287339cb483e42bc","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/cloudhead/node-static/blob/master/lib/node-static.js%23L160-L163","tags":["broken-link","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26111","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/cloudhead/node-static","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/cloudhead/node-static/blob/master/lib/node-static.js#23L160-L163","tags":["web"],"sources":["ghsa"]}],"credits":["Liran Tal"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-03-05T20:29:56.254Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-26111","url":"https://www.cve.org/CVERecord?id=CVE-2023-26111","licence":"CVE Terms of Use","modified":"2025-03-05T20:30:05.472Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5g97-whc9-8g7j","url":"https://github.com/advisories/GHSA-5g97-whc9-8g7j","licence":"CC-BY-4.0","modified":"2025-09-26T21:58:15.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-26111","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26111","licence":"Public domain","modified":"2026-06-17T05:42:42.057Z"}],"updatedAt":"2026-11-25T22:58:22.280Z","epss":{"score":0.01445,"percentile":0.74046,"date":"2026-12-01T12:00:22.000Z"}}