CVE-2018-3712: serve node module before 6.4.9 suffers from a Path Traversal vulnerability due to not handling %2e (.) and %2f
CVE-2018-3712 is a medium-severity flaw (CVSS 6.5) affecting serve. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
serve node module before 6.4.9 suffers from a Path Traversal vulnerability due to not handling %2e (.) and %2f (/) and allowing them in paths, which allows a malicious user to view the contents of any directory with known path.
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 6.5 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 1.8% (top 22%) |
| CISA exploited list | No |
| Weakness | CWE-22 |
| Published | 2018-06-07 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2018-3712?
serve: upgrade to 6.4.9. Exact commands for each OS are on this page.
Is CVE-2018-3712 being exploited?
CVE-2018-3712 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2018-3712 affect?
CVE-2018-3712 affects serve. Severity is medium (CVSS 6.5). serve node module before 6.4.9 suffers from a Path Traversal vulnerability due to not handling %2e (.) and %2f (/) and allowing them in paths, which allows a malicious user to view the contents of any directory with known path.
How urgent is CVE-2018-3712?
Priority 47/100. Public exploit reference
Related CVEs
- CVE-2019-5417 HIGH 7.5 UPGRADE A path traversal vulnerability in serve npm package version 7.0.1 allows the attackers to read content of arbi
- CVE-2019-5415 HIGH 7.5 DOWNGRADE A bug in handling the ignore files and directories feature in serve 6.5.3 allows an attacker to read a file or
- CVE-2018-3809 MEDIUM 5.3 DOWNGRADE Information exposure through directory listings in serve 6.5.3 allows directory listing and file access even w
- CVE-2018-3718 MEDIUM 5.3 UPGRADE serve node module suffers from Improper Handling of URL Encoding by permitting access to ignored files if a fi