Quick answers
- Is This vulnerability exploited in the wild?
- No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
- How severe is This vulnerability?
- Informational severity, published 1 September 2020.
- Which products and versions are affected?
- serve (npm) before 6.5.2.
- Is there a fix for This vulnerability?
- A patch was published on 2020: Fixed in version 6.5.2 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is This vulnerability attacked?
- It is attacked over the network, in a software library.
- Am I affected?
- Check whether you run serve (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
The vulnerability is a validation-before-canonicalization flaw in the serve library's ignore functionality. Path validation occurs before URL-encoded characters are decoded and paths are canonicalized, allowing attackers to bypass ignore rules by submitting URL-encoded equivalents of blocked filenames (e.g., accessing test.txt as t%65st.txt). The issue affects all versions prior to 6.5.2 and is reachable over the network without authentication. An attacker can access ignored files and enumerate restricted directories by exploiting this path traversal bypass.
Affected products
- npm serve before 6.5.2
Timeline
- 2020-09-01: disclosed
- 2020: patched: Fixed in version 6.5.2