GitHub Advisoryadvisory · npm
GHSA-xwg4-93c6-3h42 Directory Traversal in send
LOW
Official page ↗
- Aliases
- CVE-2014-6394
- Ecosystem
- npm
- Packages
- send
- Severity
- Low
- Weaknesses
- CWE-22
- Reviewed
- 2020-06-16
Affected packages
• npm send: < 0.8.4 → fixed in 0.8.4
Description
Versions 0.8.3 and earlier of `send` are affected by a directory traversal vulnerability. When relying on the root option to restrict file access it may be possible for an application consumer to escape out of the restricted directory and access files in a similarly named directory.
For example, `static(_dirname + '/public')` would allow access to `_dirname + '/public-restricted'`.
Recommendation
Update to version 0.8.4 or later.
Related
Alias · CVE (1)
- CVE-2014-6394 visionmedia send before 0.8.4 for Node.js uses a partial comparison for verifying whether a directory is within the document root, which… vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2014-6394 advisory
- https://github.com/visionmedia/send/pull/59 web
- https://github.com/visionmedia/send/commit/9c6ca9b2c0b880afd3ff91ce0d211213c5fa5f9a web
- https://bugzilla.redhat.com/show_bug.cgi?id=1146063 web
- https://exchange.xforce.ibmcloud.com/vulnerabilities/96727 web
- https://github.com/advisories/GHSA-xwg4-93c6-3h42 advisory
- https://github.com/visionmedia/send package
- https://support.apple.com/HT205217 web
- https://www.npmjs.com/advisories/32 web
- http://lists.apple.com/archives/security-announce/2015/Sep/msg00002.html web
- http://lists.fedoraproject.org/pipermail/package-announce/2014-October/139938.html web
- http://lists.fedoraproject.org/pipermail/package-announce/2014-October/140020.html web
- http://lists.fedoraproject.org/pipermail/package-announce/2014-September/139415.html web
- http://secunia.com/advisories/62170 web
- http://www-01.ibm.com/support/docview.wss?uid=swg21687263 web
- http://www.openwall.com/lists/oss-security/2014/09/24/1 web
- http://www.openwall.com/lists/oss-security/2014/09/30/10 web
- http://www.securityfocus.com/bid/70100 web