Description
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.
Remediation
References
https://gist.github.com/lirantal/c80b28e7bee148dc287339cb483e42bc
https://github.com/cloudhead/node-static/blob/master/lib/node-static.js%23L160-L163
https://security.snyk.io/vuln/SNYK-JS-NODESTATIC-3149928
https://security.snyk.io/vuln/SNYK-JS-NUBOSOFTWARENODESTATIC-3149927
Related Vulnerabilities
CVE-2020-25649 Vulnerability in maven package com.fasterxml.jackson.core:jackson-databind
CVE-2022-2216 Vulnerability in maven package org.webjars.npm:parse-url
CVE-2019-14772 Vulnerability in maven package org.webjars.npm:verdaccio
CVE-2020-15366 Vulnerability in maven package org.webjars.bowergithub.epoberezkin:ajv
CVE-2022-23458 Vulnerability in maven package org.webjars.bowergithub.nhn:tui.grid