CVE-2026-39408
highpriority · track · 30EPSS 0.004 · 38 %ileDEEUUSEPSS · scored 2026-10-22
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.12, 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. This vulnerability is fixed in 4.12.12.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–high · 2.1–7.5
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (27)
Products and version ranges known to be affected.
- IBM App Connect Enterprise 12.0.1.0-12.0.12.25all versionscert_bundDEcpe:/a:ibm:app_connect_enterprise:12.0.1.0_-_12.0.12.25
- IBM App Connect Enterprise 12.0.1.0-12.0.12.26all versionscert_bundDEcpe:/a:ibm:app_connect_enterprise:12.0.1.0_-_12.0.12.26
- IBM App Connect Enterprise 13.0.1.0-13.0.7.0all versionscert_bundDEcpe:/a:ibm:app_connect_enterprise:13.0.1.0_-_13.0.7.0
- IBM App Connect Enterprise 13.0.1.0-13.0.7.1all versionscert_bundDEcpe:/a:ibm:app_connect_enterprise:13.0.1.0_-_13.0.7.1
- IBM SPSS Collaboration and Deployment Servicesall versionscert_bundDEcpe:/a:ibm:spss:collaboration_and_deployment_services
- IBM Sterling Connect:Direct Web Servicesall versionscert_bundDEcpe:/a:ibm:sterling_connect%3adirect:web_services
- Red Hat Enterprise Linux 9 Multicluster Engine for Kubernetes 2.8.6all versionscert_bundDEcpe:/o:redhat:enterprise_linux:9_multicluster_engine_for_kubernetes_2.8.6
- Red Hat OpenShift OpenShift Container Platform 4.20.29all versionscert_bundDEcpe:/a:redhat:openshift:openshift_container_platform_4.20.29
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2026-1407IBM App Connect Enterprise Certified Container: Mehrere SchwachstellenDeutsch2026-05-06csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in IBM App Connect Enterprise Certified Container ausnutzen, um beliebigen Code auszuführen, Sicherheitsmaßnahmen zu umgehen, Cross-Site-Scripting-Angriffe durchzuführen, Daten zu manipulieren, vertrauliche Informationen offenzulegen oder einen Denial-of-Service-Zustand zu verursachen.
- GHSA-xf4j-xp2r-rqqxHono: Path traversal in toSSG() allows writing files outside the output directory2026-04-08ghsa · osvUS
## Summary 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. ## Details 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. For example: ```ts import { Hono } from 'hono' import { toSSG, ssgParams } from 'hono/ssg' const app = new Hono() app.get('/:id', ssgParams([{ id: '../pwned' }]), (c) => { return c.text('pwned') }) toSSG(app, fs, { dir: './static' }) ``` In this case, the generated output path may resolve outside `./static`, resulting in a file being written outside the intended output directory. ## Impact An attacker who can influence values passed to `ssgParams` during the build process may be able to write files outside the intended output directory. Depending on the build and deployment environment, this may: * overwrite unintended files * affect generated artifacts * impact deployment outputs or downstream tooling This issue is limited to build-time static site generation and does not affect request-time routing.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (11)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2026-39408cnnvd
- https://github.com/honojs/hono/commit/b470278920fffcfd6d76002755d6db53db827679cnnvd
- https://github.com/honojs/hono/releasesPatchcnnvd
- https://github.com/honojs/hono/releases/tag/v4.12.12cnnvd
- https://github.com/honojs/hono/security/advisories/GHSA-xf4j-xp2r-rqqxcnnvd
- https://github.com/honojs/hono/commit/b470278920fffcfd6d76002755d6db53db827679enisa_euvd
- https://github.com/honojs/hono/releases/tag/v4.12.12enisa_euvd
- https://github.com/honojs/hono/security/advisories/GHSA-xf4j-xp2r-rqqxenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan