[Aikido] Fix 41 security issues in fast-uri, hono - #11
[Aikido] Fix 41 security issues in fast-uri, hono#11aikido-autofix[bot] wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 5581240. Configure here.
| fast-uri@3.1.0: | ||
| resolution: {integrity: sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==} | ||
| fast-uri@3.1.5: | ||
| resolution: {integrity: sha512-gHwA1O9LDIcKunMKhObS/HimwtehO1nPUECKAu5TpKgaO19fcWEl4bliWe1jWxVFvIXztJjjQ4L8XQ1EU9f7Jw==} |
There was a problem hiding this comment.
Incomplete fast-uri lockfile fix
Medium Severity
fast-uri is bumped to 3.1.5 in pnpm-lock.yaml, but apps/cli/bun.lock still pins fast-uri@3.1.0. That is the only package that pulls in conf → ajv → fast-uri, and the CLI builds with bun build, which bundles dependencies by default, so Bun installs can still ship the vulnerable transitive version.
Reviewed by Cursor Bugbot for commit 5581240. Configure here.
|
Closed by Aikido: a new AutoFix has been created → #13 |


Upgrade fast-uri and hono to fix critical SSRF/host-bypass and path-traversal vulnerabilities caused by improper URI normalization and authority parsing.
✅ No breaking changes for: fast-uri
✅ 41 CVEs resolved by this upgrade
This PR will resolve the following CVEs:
fast-uritreats as paths but Node's URL parser treats as authority, enabling redirection to unintended destinations.Content-Lengthwas missing or bodies were chunked, due to asynchronous limit enforcement. This could enable DoS attacks or unintended data processing despite configured size restrictions.setCookie(),serialize(), orserializeSigned(), allowing invalid characters that can cause malformed Set-Cookie headers and runtime errors when processing untrusted cookie names.parseBody({ dot: true })where specially crafted form field names like__proto__.xcreate objects with__proto__properties, potentially enabling prototype pollution if merged unsafely into other objects.jsx()andcreateElement(), allowing untrusted tag input to inject markup and reshape generated HTML, potentially enabling XSS attacks.🤖 Remediation details
Fix high/medium/low severity vulnerabilities in
fast-uriandhonoShort summary
This PR remediates multiple high, medium, and low severity vulnerabilities in two packages:
fast-uri(transitive, resolved via lockfile refresh) andhono(direct dependency, resolved via manifest bump). The declared version ofhonowas updated inapps/worker/package.json, andpnpm-lock.yamlwas refreshed to reflect both the newhonoresolution and the updatedfast-uritransitive resolution.fast-uri
fast-uriappears in the lockfile as a transitive dependency pulled in through the chainconf→ajv→fast-uri. The previously resolved version (3.1.0) fell within every vulnerable range covered by this task; the required floor is3.1.5. No manifest change was needed becauseajv@8.18.0already declaresfast-uri: "^3.0.1", a range that permits3.1.5—the lockfile simply had a stale pin. Runningpnpm update fast-uri --lockfile-only --recursiverefreshed the transitive resolution to3.1.5, clearing all associated advisories without any override.hono
honois a direct dependency declared inapps/worker/package.json. The previously declared range (^4.7.0) resolved to4.12.5, which falls within every vulnerable range covered by this task; the required floor is4.12.25. The declared range was narrowed to^4.12.25inapps/worker/package.jsonto enforce the security floor, andpnpm install --lockfile-onlyresolved it to4.12.33.Version changes
hono^4.7.0→ resolved4.12.5^4.12.25→ resolved4.12.33fast-uri3.1.0(lockfile)3.1.5(lockfile)ajv@8.18.0range already permitted3.1.5Note
Medium Risk
Touches the Cloudflare worker’s core
honodependency (auth, APIs, SSR); behavior may shift across many security fixes even though the change is version-only.Overview
Security-focused dependency updates:
honoinapps/workeris raised from^4.7.0to^4.12.25(lockfile resolves4.12.33), addressing multiple advisories in the worker’s HTTP stack (routing, middleware, JSX HTML rendering).pnpm-lock.yamlis regenerated so transitivefast-urimoves3.1.0→3.1.5(viaajv/conf), fixing URI normalization and host-parsing bypass issues without a direct manifest change. The lockfile also reflects routine resolution churn (e.g. worker vite no longer pulling optionaltsx,libcmetadata on native optional deps, andapps/climarkdown deps appearing in the pnpm graph where they were already declared).Reviewed by Cursor Bugbot for commit 5581240. Bugbot is set up for automated code reviews on this repo. Configure here.