Canonical: https://www.startearly.ai/case-files/hono/formdata-cache-boundary/
Updated: 2026-11-14

# Hono Form Parsing Regression Case File | Early

## A valid form request could return corrupted data.

Regression Case File

Hono v4.12.28 could corrupt form fields when middleware called formData() before a handler called parseBody(). Three releases were affected before v4.12.31 restored the reported behavior.

## Release

**Baseline:** v4.12.27

**Introduced:** v4.12.28

**Last Affected:** v4.12.30

**Restored:** v4.12.31

**Affected Release Count:** 3

### Public report

Reported by: User. Recorded report delay: 11 day.

Recorded fix delay: 12 day.

## Regression

The request could return HTTP 200.

The form fields were corrupted.

Form parsing could fail or corrupt fields.

**Changed:** parseFormData began reading an arrayBuffer. When formData was already cached, Hono reserialized it with a new multipart boundary, then parsed those bytes using the original request header and its old boundary. The reported path was fixed by reusing the cached formData value.

**Relationship:** Middleware formData() → request body cache → handler parseBody() → parsed fields

The cached form bytes and original request header no longer described the same multipart boundary.

## Replay

The recorded historical analysis compared v4.12.27 with v4.12.28.

The run reported **6 Expected** and **1 Regression** findings.

“Expected” means behavior Early classified as expected, not the number of bugs it expected to find. “Regression” identifies behavior classified as a defect relative to the baseline. These labels describe this run; the counts are not recall or accuracy measurements. The verification evidence below establishes which defects were corroborated.

**Finding Title:** parseBody after formData() corrupts multipart boundary

**Finding Summary:** Early traced the corruption to a boundary mismatch: cached FormData was reserialized with a new multipart boundary, then parsed using the original request header. The reproduction passed before v4.12.28, failed across v4.12.28 through v4.12.30, and passed again on v4.12.31.

Actual Early product finding from the August 24 corroborating replay.

### Public Report

[Public issue #5129](https://github.com/honojs/hono/issues/5129)

### Introducing Change

[Introducing PR #5067](https://github.com/honojs/hono/pull/5067)

### Upstream fix

[Upstream fix PR #5131](https://github.com/honojs/hono/pull/5131)

**Disclosure:** Independent replay. Not affiliated with Hono.

[Technical article](https://www.startearly.ai/post/hono-parsebody-regression-release-replay/)

## Source and next step

[Read the canonical page and its evidence](https://www.startearly.ai/case-files/hono/formdata-cache-boundary/).
