apimock is vulnerable to Path Traversal
78
High Risk
The file-serving fallback joins a request-derived path onto the configured response directory and checks only that the resolved path exists, never that it stays inside that directory. A request carrying a raw .. segment can therefore read any file the process can open, returned with HTTP 200. The fix canonicalizes each resolved path and rejects anything outside the base directory.
You are affected if you are using a version that falls within the vulnerable range and the mock server is reachable by clients that can send raw .. path segments.
apimock is vulnerable to Path Traversal in versions 2.0.3 - 4.8.0.
Upgrade the apimock 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.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.