org.mvnpm:hono@4.12.28

  • latest version

    4.13.16

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    24 days ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm:hono package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Insufficiently Controlled Parser Differential

    org.mvnpm:hono is an Ultrafast web framework for the Edges

    Affected versions of this package are vulnerable to Insufficiently Controlled Parser Differential via the multipartRegex pattern in src/validator/validator.ts, which only matches a multipart/form-data Content-Type carrying exactly one boundary parameter. When a request includes any additional legal parameter (such as charset) or extra whitespace after the ;, the regex fails to match, causing the validator('form') middleware to pass an empty object to the validation callback instead of the parsed form fields. If the callback accepts an empty object, the request proceeds to the handler, which can still read all submitted fields through c.req.parseBody() or c.req.formData(), effectively bypassing any allow-list or required-field checks the validator was intended to enforce.

    Note: This is only exploitable when the application uses validator('form') with multipart/form-data requests and the validation callback does not explicitly reject an empty object.

    How to fix Insufficiently Controlled Parser Differential?

    Upgrade org.mvnpm:hono to version 4.13.16 or higher.

    [4.7.10,4.13.16)
    • M
    Authentication Bypass Using an Alternate Path or Channel

    org.mvnpm:hono is an Ultrafast web framework for the Edges

    Affected versions of this package are vulnerable to Authentication Bypass Using an Alternate Path or Channel via two flaws in the path-prefix stripping logic of mount() and app.mount(). First, when a dynamic mount prefix such as /api/:tenant/* is used, the prefix is removed by the length of the route pattern string rather than the length of the matched prefix, so a request like /api/a/xxxxx/admin/secret is forwarded to the mounted application as /admin/secret. Second, since 4.12.21, the forwarded path is built from the decoded request path and assigned to url.pathname, which causes a decoded backslash to be normalized to / and .. sequences to be collapsed, so /app/public%5C..%5Cadmin/secret also reaches the mounted application as /admin/secret. In both cases the outer application routes on the original path, so path-scoped middleware such as an authentication check on /app/admin/* does not run, and an unauthenticated client can reach protected routes of the mounted application.

    Note: This is only exploitable when mount() or app.mount() is used and authentication or authorization middleware is registered on a sub-path inside the mount prefix in the outer application.

    How to fix Authentication Bypass Using an Alternate Path or Channel?

    Upgrade org.mvnpm:hono to version 4.13.16 or higher.

    [,4.13.16)
    • L
    Cross-site Scripting (XSS)

    org.mvnpm:hono is an Ultrafast web framework for the Edges

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the css helper in hono/css, which escapes </ sequences only within individual interpolated values and not across template boundaries. When the template literal or a preceding interpolated value ends with < and the next interpolated value starts with /style>, the combined output contains an unescaped </style> closing tag. During server-side rendering, this causes the <Style /> element to close early and the remainder of the value to be interpreted as HTML, allowing an attacker who controls the interpolated string to inject arbitrary HTML, including script elements, into the rendered page.

    Note: This is only exploitable when < is the last character before an interpolation in a css template (either in the template literal itself or supplied by a preceding interpolated value) and the subsequent interpolated value is attacker-controlled.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.mvnpm:hono to version 4.13.16 or higher.

    [4.7.10,4.13.16)
    • M
    Incorrect Authorization

    org.mvnpm:hono is an Ultrafast web framework for the Edges

    Affected versions of this package are vulnerable to Incorrect Authorization via RegExpRouter in three distinct cases where wildcard middleware is silently skipped, allowing a request to reach a route handler or the not-found handler without the authentication or authorization middleware registered on a wildcard path. In case 1, middleware whose parameter uses an explicit default pattern such as /api/:tenant{[^/]+}/admin/* is not applied to a route written as /api/:tenant/admin/:id. In case 2, middleware on /admin/* is not applied to a route registered on /admin* for paths under /admin/. In case 3, a path containing an encoded line terminator (%0A, %0D, %E2%80%A8, or %E2%80%A9) matches no wildcard pattern, so the request bypasses all wildcard middleware entirely.

    Note: This is only exploitable when the application uses RegExpRouter directly or through the default SmartRouter, and relies on wildcard middleware for authentication or authorization.

    How to fix Incorrect Authorization?

    Upgrade org.mvnpm:hono to version 4.13.16 or higher.

    [4.7.10,4.13.16)
    • M
    Cross-site Request Forgery (CSRF)

    org.mvnpm:hono is an Ultrafast web framework for the Edges

    Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via the csrf() middleware's failure to validate requests with Content-Type: text/ping. The middleware only performs origin checks when the content type matches one of the three types an HTML form can send. Chromium's hyperlink auditing (<a ping>) sends a credentialed cross-origin POST with Content-Type: text/ping and no CORS preflight, which the middleware passes directly to the handler without evaluating the Origin or Sec-Fetch-Site headers. An attacker can therefore host a page that causes a visiting user in Chrome or Edge to trigger state-changing POST requests - such as logging out, deleting a resource, or toggling a setting - against any application protected by csrf(), provided the request body content is irrelevant to the action.

    Note: This is only exploitable against endpoints whose effect does not depend on the request body, and requires the user's session cookie to be sent with the request (default SameSite=Lax permits this from a same-site origin, or when cookies are set with SameSite=None).

    How to fix Cross-site Request Forgery (CSRF)?

    Upgrade org.mvnpm:hono to version 4.13.16 or higher.

    [,4.13.16)
    • M
    Double Decoding of the Same Data

    org.mvnpm:hono is an Ultrafast web framework for the Edges

    Affected versions of this package are vulnerable to Double Decoding of the Same Data via double URL-decoding in the serveStatic middleware, where a percent-encoded path is decoded a second time after routing. An attacker can supply a request path containing percent-encoded sequences that, after the additional decoding pass, resolve to a path that bypasses access controls, allowing unauthorized read access to protected static files.

    How to fix Double Decoding of the Same Data?

    Upgrade org.mvnpm:hono to version 4.13.11 or higher.

    [4.12.5,4.13.11)
    • L
    Cross-site Scripting (XSS)

    org.mvnpm:hono is an Ultrafast web framework for the Edges

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via insufficient server-side HTML escaping in the JSX rendering pipeline. Untrusted values - including array roots, boundary objects, fallback objects, and provider objects - are passed through childrenToString and related rendering paths without being escaped, allowing an attacker to inject arbitrary HTML or JavaScript into server-rendered output. A remote attacker can supply a malicious string through any of these unescaped rendering paths to execute scripts in a victim's browser.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.mvnpm:hono to version 4.13.7 or higher.

    [,4.13.7)
    • M
    Asymmetric Resource Consumption (Amplification)

    org.mvnpm:hono is an Ultrafast web framework for the Edges

    Affected versions of this package are vulnerable to Asymmetric Resource Consumption (Amplification) in the parseBody() function, which expands dot-separated form field names into nested objects without limiting nesting depth or total object creation. An attacker can exhaust the JavaScript heap and terminate the server process by sending concurrent requests with deeply dotted field names, since a body within the normal size limit allocates an object graph far larger than the request itself. This requires the endpoint to have dot-notation parsing enabled, which is off by default.

    How to fix Asymmetric Resource Consumption (Amplification)?

    Upgrade org.mvnpm:hono to version 4.13.5 or higher.

    [,4.13.5)
    • H
    HTTP Request Smuggling

    org.mvnpm:hono is an Ultrafast web framework for the Edges

    Affected versions of this package are vulnerable to HTTP Request Smuggling in its query parsing helpers, which do not terminate at the URL fragment and parse a ? appearing after a # as the start of the query string. An attacker can smuggle parameters past upstream allow/deny lists and validation, poison cache entries with unobserved parameters, or achieve stored XSS in cached HTML, by placing query parameters after a # fragment so browsers, new URL(), and reverse proxies ignore them while the query helpers still read them. This requires a literal # in the request URL to reach the application, and deployments behind intermediaries that strip fragments or runtimes that normalize URLs, such as Cloudflare Workers, are unaffected.

    How to fix HTTP Request Smuggling?

    Upgrade org.mvnpm:hono to version 4.13.5 or higher.

    [,4.13.5)
    • H
    Directory Traversal

    org.mvnpm:hono is an Ultrafast web framework for the Edges

    Affected versions of this package are vulnerable to Directory Traversal in the toSSG() static site generation function, whose path normalization does not fully collapse runs of consecutive .. segments and treats output directories that differ only in how they are rooted as equivalent. An attacker can cause build output to be written outside the intended output directory by supplying a route parameter with enough .. sequences that reaches ssgParams from an untrusted source.

    Note: This affects build-time static site generation only, not request-time routing, and requires the application to build pages from ssgParams values sourced from untrusted origins such as a CMS, API, or user submissions.

    Note: This is a bypass of the fix for the vulnerability described in CVE-2026-39408.

    How to fix Directory Traversal?

    Upgrade org.mvnpm:hono to version 4.13.5 or higher.

    [,4.13.5)
    • M
    Inefficient Algorithmic Complexity

    org.mvnpm:hono is an Ultrafast web framework for the Edges

    Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the languageDetector middleware. An attacker can cause excessive CPU consumption and block unrelated requests by sending crafted language tags with a large number of hyphen-separated subtags.

    How to fix Inefficient Algorithmic Complexity?

    Upgrade org.mvnpm:hono to version 4.12.34 or higher.

    [4.12.5,4.12.34)
    • M
    HTTP Request Smuggling

    org.mvnpm:hono is an Ultrafast web framework for the Edges

    Affected versions of this package are vulnerable to HTTP Request Smuggling in the proxy process. An attacker can access connection-scoped or internal metadata by sending requests to an application that proxies responses from an origin specifying custom headers in the Connection response header. This is only exploitable if the origin server includes additional, non-standard headers in the Connection response header beyond the standard hop-by-hop headers.

    How to fix HTTP Request Smuggling?

    Upgrade org.mvnpm:hono to version 4.12.34 or higher.

    [4.7.10,4.12.34)
    • M
    Exposure of Data Element to Wrong Session

    org.mvnpm:hono is an Ultrafast web framework for the Edges

    Affected versions of this package are vulnerable to Exposure of Data Element to Wrong Session in the memo function. An attacker can access sensitive information belonging to other users by sending requests that trigger the reuse of server-side rendered HTML when components wrapped in memo obtain user- or request-specific data from an ambient context instead of through props. This is only exploitable if the application renders with server-side rendering using hono/jsx, wraps a component reading ambient request state in memo, and both requests reach the same warm instance.

    How to fix Exposure of Data Element to Wrong Session?

    Upgrade org.mvnpm:hono to version 4.12.34 or higher.

    [4.7.10,4.12.34)
    • M
    Regular Expression Denial of Service (ReDoS)

    org.mvnpm:hono is an Ultrafast web framework for the Edges

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the cors middleware during the parsing of the Access-Control-Request-Headers header via a regular expression with quadratic runtime complexity. An attacker can cause excessive CPU consumption and degrade or deny service by sending specially crafted preflight requests containing long runs of whitespace in the header value.

    Note: This is only exploitable if the allowHeaders option is left unset or empty in the middleware configuration.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade org.mvnpm:hono to version 4.12.34 or higher.

    [,4.12.34)