<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-06T06:21:13.915434+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-g72f-jw3w-mgh7</id>
    <title>GHSA-g72f-jw3w-mgh7 — @openhop/server: Path Traversal in Flow ID File Operations</title>
    <updated>2026-10-06T06:21:13.928059+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: @openhop/server</p>
<p>## Path Traversal in Flow ID File Operations</p>
<p>### Summary</p>
<p>`@openhop/server` passes unsanitized HTTP route parameters directly to `path.join()` when constructing filesystem paths for flow YAML files. An unauthenticated attacker who can reach the server can read arbitrary `.yaml` files accessible to the OpenHop process outside the configured flow directory, and can delete arbitrary `.yaml` files at any path reachable by the process. Because CORS is set to `origin: true` (allow all origins), a victim's browser can be used to exploit the vulnerability against a loopback-bound instance. Docker deployments bind `HOST=0.0.0.0` by default, enabling direct remote exploitation. CVSS Base Score: **8.3 (High)**.</p>
<p>### Details</p>
<p>`FlowStore.filePath()` in `packages/server/src/store.ts:52–53` constructs a filesystem path by concatenating the caller-supplied `id` directly into `path.join`:</p>
<p>```ts
// packages/server/src/store.ts:52-53
private filePath(id: string): string {
  return join(this.dir, `${id}.yaml`)
}
```</p>
<p>This result is consumed by two sinks:</p>
<p>- **Read** (`packages/server/src/store.ts:78`): `readFile(this.filePath(id), 'utf-8')`
- **Delete** (`packages/server/src/store.ts:105`): `unlink(this.filePath(id))`</p>
<p>The `id` value originates from unauthenticated Fastify HTTP route parameters:</p>
<p>- `GET /api/flows/:id` (`packages/server/src/routes.ts:306`) → `store.get(id)` at line 333–335
- `DELETE /api/flows/:id` (`packages/server/src/routes.ts:509`) → `store.delete(id)` at line 539–541</p>
<p>Th…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-g72f-jw3w-mgh7"/>
  </entry>
</feed>
