Vulnerabilities/

@hono/node-server cannot handle "double dots" in URL

Severity:
Medium

Description

Since v1.3.0, we use our own Request object. This is great, but the url behavior is unexpected.

In the standard API, if the URL contains .., here called “double dots”, the URL string returned by Request will be in the resolved path.

However, the url in our Request does not resolve double dots, so http://localhost/static/.. /foo.txt is returned.

Recommendation

Update the @hono/node-server package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@hono/node-server
Anything's wrong? Let us know Last updated on January 23, 2024

This issue is available in SmartScanner Professional

See Pricing