Advisory

GHSA-q2qh-cgc2-qhr3

Also known as: CVE-2018-3712

Summary

Directory Traversal in serve

Details

Affected versions of serve do not properly handle %2e (.) and %2f (/) characters, and allow the, characters to be used in paths. This can be used to traverse the directory tree and list content of any directory the user running the process has access to.

Mitigating factors:
This vulnerability only allows listing of directory contents and does not allow reading of arbitrary files.

Recommendation

Update to version 6.4.9 later.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2018-07-27 17:07 UTC
Modified
2023-11-08 04:00 UTC

Affected packages and fixes

serve

npm · All systems

Affected

  • introduced 0, fixed 6.4.9 (semver)

Fixed versions

6.4.9

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences