<?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-06T18:10:01.972112+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-xf4j-xp2r-rqqx</id>
    <title>GHSA-xf4j-xp2r-rqqx — Hono: Path traversal in toSSG() allows writing files outside the output directory</title>
    <updated>2026-10-06T18:10:01.985904+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: hono</p>
<p>## Summary</p>
<p>A path traversal issue in `toSSG()` allows files to be written outside the configured output directory during static site generation. When using dynamic route parameters via `ssgParams`, specially crafted values can cause generated file paths to escape the intended output directory.</p>
<p>## Details</p>
<p>The static site generation process creates output files based on route paths derived from application routes and parameters. When `ssgParams` is used to provide values for dynamic routes, those values are used to construct output file paths. If these values contain traversal sequences (e.g. `..`), the resulting output path may resolve outside the configured output directory. As a result, files may be written to unintended locations instead of being confined within the specified output directory.</p>
<p>For example:
 
```ts
import { Hono } from 'hono'
import { toSSG, ssgParams } from 'hono/ssg'</p>
<p>const app = new Hono()</p>
<p>app.get('/:id', ssgParams([{ id: '../pwned' }]), (c) =&gt; {
  return c.text('pwned')
})</p>
<p>toSSG(app, fs, { dir: './static' })
```</p>
<p>In this case, the generated output path may resolve outside `./static`, resulting in a file being written outside the intended output directory.</p>
<p>## Impact</p>
<p>An attacker who can influence values passed to `ssgParams` during the build process may be able to write files outside the intended output directory.</p>
<p>Depending on the build and deployment environment, this may:</p>
<p>* overwrite unintended files
* affect generated artifacts
* impact deplo…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-xf4j-xp2r-rqqx"/>
  </entry>
</feed>
