CVE-2023-50710 Hono's named path parameters can be overridden in TrieRouter

Medium 4.2 Published Updated

Attackers can override path parameters in Hono's TrieRouter, potentially allowing unauthorized modification of REST API resources.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-50710?

CVE-2023-50710 is a medium-severity vulnerability in honojs hono, published on 14 Dec 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Hono is a web framework written in TypeScript. Prior to version 3.11.7, clients may override named path parameter values from previous requests if the application is using TrieRouter. So, there is a risk that a privileged user may use unintended parameters when deleting REST API resources. TrieRouter is used either explicitly or when the application matches a pattern that is not supported by the default RegExpRouter. Version 3.11.7 includes the change to fix this issue. As a workaround, avoid using TrieRouter directly.

Weakness: CWE-94

Which versions are affected by CVE-2023-50710?

2 open source packages ship an affected version, including hono. It affects 1 product.

PackageAffectedFixed in
hono npmAll versions3.11.7
hono npmAll versions3.11.7

Products include Hono Hono.

How do I fix CVE-2023-50710?

Upgrade hono to 3.11.7 or later.

Is CVE-2023-50710 being exploited?

There is no known exploitation of CVE-2023-50710 in the wild and no public exploit code.

Sources

Also known as GHSA-f6gv-hh8j-q8vq.

Is CVE-2023-50710 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free