Vulnerability · Published Dec 14, 2023 · Assigned by GitHub_M

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

Medium 4.2

In plain English

A medium-severity code injection in hono from honojs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.2Medium
Exploit odds (30 days)0.6%top 49.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmhono3.11.7GHSA-f6gv-hh8j-q8vq

Affected products (as reported)

VendorProductVersions
honojs hono < 3.11.7

Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L

References