Intel

AIKIDO-2026-10778

view_component is vulnerable to Path Traversal

Path TraversalGHSA-hg3h-g7xc-f7vp Published May 8, 2026

59

Medium Risk

This Affects:

RUBYview_component
3.0.0 - 4.8.0
Fixed in 4.9.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

view_component is vulnerable to Path Traversal in versions 3.0.0 - 4.8.0.

How to fix this

Upgrade the view_component library to the patch version.