view_component is vulnerable to Path Traversal
59
Medium Risk
The system test entrypoint resolves a user-supplied file path and checks containment with a plain string prefix comparison. Sibling directories sharing the same prefix can pass this check even when the resolved file is outside the intended temporary base path. This can cause unintended file rendering when test routes are reachable. The fix replaces the unsafe containment logic with separator-aware path checks and handles invalid paths by returning a not-found response.
You are affected if you are using a version that falls within the vulnerable range.
view_component is vulnerable to Path Traversal in versions 3.0.0 - 4.8.0.
Upgrade the view_component 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