Intel

AIKIDO-2026-889206

encore.dev is vulnerable to Path Traversal

Path TraversalGHSA-5cq5-fpx7-2wmx Published 2 days ago

59

Medium Risk

This Affects:

GOencore.dev
0.0.1 - 1.57.12
Fixed in 1.57.13
Are you affected? Scan for Free

TL;DR

The local object storage emulator builds on-disk paths by joining untrusted bucket and object names from request paths directly onto its storage directory. Because .. segments, including percent-encoded forms that decode after routing, are not rejected, a request to the local bucket server can escape the storage directory and read, overwrite, or delete arbitrary files with the privileges of the Encore daemon. Exposure is limited to local development and requires knowing the randomly generated namespace id used to route bucket requests. The fix validates both path components with a local-path check and returns an error for any name that escapes the directory.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run Encore's local object storage emulator during development with declared buckets.

Background info

encore.dev is vulnerable to Path Traversal in versions 0.0.1 - 1.57.12.

How to fix this

Upgrade the encore.dev library to the patch version.