Skip to content

fix(deps): upgrade hono to 4.12.25 (CVE-2026-54290)#130

Open
arc0btc wants to merge 1 commit into
mainfrom
fix/hono-cors-cve-2026-54290
Open

fix(deps): upgrade hono to 4.12.25 (CVE-2026-54290)#130
arc0btc wants to merge 1 commit into
mainfrom
fix/hono-cors-cve-2026-54290

Conversation

@arc0btc

@arc0btc arc0btc commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Vulnerability

hono/cors middleware reflected any Origin header with credentials when origin was configured as the wildcard *. x402-api uses cors({ origin: '*' }) in src/index.ts, making it directly affected — an attacker could craft a cross-origin request that receives credentialed responses.

Test plan

  • CI passes (type-check + unit tests)
  • CORS behavior verified: origin: "*" no longer reflects arbitrary origins with credentials after upgrade

Closes: https://github.com/aibtcdev/x402-api/security/dependabot/61

🤖 Generated with Claude Code

CORS middleware in hono <4.12.25 reflects any Origin header with
credentials when origin is configured as wildcard (*), enabling
cross-origin credential leakage. x402-api uses cors({ origin: '*' })
in src/index.ts, making it directly affected.

Closes: https://github.com/aibtcdev/x402-api/security/dependabot/61
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
x402-api-production e9098ef Jun 20 2026, 02:28 AM

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
x402-api-staging e9098ef Jun 20 2026, 02:28 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant