Advisory

GHSA-f3vw-587g-r29g

Also known as: None

Summary

Path Traversal in sapper

Details

Versions of sapper prior to 0.27.11 are vulnerable to Path Traversal. It is possible to access sensitive files on the server through HTTP requests containing URL-encoded ../.

You may test a sapper application running in prod mode with curl -vvv http://localhost:3000/client/750af05c3a69ddc6073a/%252e%252e/%252e%252e/%252e%252e/%252e%252e/%252e%252e/%252e%252e/%252e%252e/%252e%252e/etc/passwd.

Recommendation

Upgrade to version 0.27.11 or later.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2020-09-03 15:50 UTC
Modified
2020-08-31 19:01 UTC

Affected packages and fixes

sapper

npm · All systems

Affected

  • introduced 0, fixed 0.27.11 (semver)

Fixed versions

0.27.11

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