yhirose.cpp-httplib is vulnerable to Path Traversal
75
High Risk
The static file server follows symlinks when serving files; a symlink inside the mounted directory that points outside the mount can be used to read arbitrary files (directory traversal). The library also did not provide a dedicated filename sanitizer for multipart uploads—applications that write uploaded files using the client-supplied filename without sanitization can write outside the intended directory. In this fix the static file server resolves paths and returns 403 when the resolved path is outside the mount, and sanitize_filename() was added so multipart handlers can safely derive a basename from untrusted filenames.
You are affected if you are using a version that falls within the vulnerable range.
yhirose.cpp-httplib is vulnerable to Path Traversal in versions 0.0.1 - 0.37.2.
Upgrade the yhirose.cpp-httplib library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant