CVE-2026-27700: Hono Package Vulnerable to Authentication Bypass via IP Spoofing

hono Updated 25 Feb 2026

Summary

25/02/2026
Yes i
High
8.2

CVE-2026-27700: Hono is Vulnerable to Authentication Bypass by IP Spoofing in AWS Lambda ALB conninfo. Affects hono versions >= 4.12.0, < 4.12.2. Fixed in 4.12.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Hono is an open-source framework designed for building serverless applications, particularly in environments like AWS Lambda. It provides various functionalities, including middleware support for handling requests and responses. However, when deployed behind an AWS Application Load Balancer (ALB), it has a critical vulnerability that allows attackers to bypass IP-based access controls.

Vulnerability Detail

The vulnerability arises from the incorrect handling of the 'X-Forwarded-For' header in the AWS Lambda adapter for Hono. The 'getConnInfo()' function mistakenly selects the first IP address from this header, which can be controlled by an attacker. As a result, an attacker can spoof their IP address, allowing them to bypass IP-based restrictions and gain unauthorized access to resources. This issue specifically affects applications deployed behind an ALB, as it appends the real client IP address to the end of the 'X-Forwarded-For' header, making the first value potentially malicious.

How To Fix

Latest published version: 4.13.13 as of 23 Oct 2026

npm install hono@4.13.13

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.12.2

This is the first release that contains the fix.

npm install hono@4.12.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can modify the implementation of 'getConnInfo()' to extract the last IP address from the 'X-Forwarded-For' header instead of the first. Here is an example of how to do this:

const xff = req.headers['x-forwarded-for'] || '';
const address = xff.split(',').pop().trim();

This change will help ensure that the real client IP is used for authorization decisions until the package can be updated.

Conclusion

The Hono package has a critical vulnerability that allows for authentication bypass through IP spoofing when deployed behind an AWS ALB. It is essential to update to the patched version or implement the suggested workaround to secure your application.

See every vulnerability recorded for hono →

Share this vulnerability

FAQ

An unauthenticated attacker can bypass IP-based access restrictions, potentially gaining access to restricted resources.

Only applications using the Hono package with the AWS Lambda adapter behind an ALB are affected.

You can use Vulert, which monitors and alerts for open-source vulnerabilities. Check your application with the Vulert playground at Vulert Scanner.

The CVSS score for this vulnerability is 8.2, indicating a high severity level.

Yes, updating to Hono version 4.12.2 or later provides a permanent fix for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for hono.

How To Fix

Latest published version: 4.13.13 as of 23 Oct 2026

npm install hono@4.13.13

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.12.2

This is the first release that contains the fix.

npm install hono@4.12.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback