You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FileSystemDirectoryResourceSource needs path containment before it's used #57
NGResourceLoader.FileSystemDirectoryResourceSource is an experimental resource source that isn't used anywhere: the framework never registers it, and no application uses it. It doesn't currently affect any running app.
If it ever is used, it needs a containment check first. resourceWithPath() resolves the requested path against the base directory without normalizing it, so a path like ../../etc/passwd would resolve outside that directory.
Fix (before the class is put to use)
Normalize the resolved path and check that it stays within the base directory:
changed the title [-]Path traversal in filesystem resource serving[/-][+]FileSystemDirectoryResourceSource needs path containment before it's used[/+]on Oct 2, 2026
Activity
[-]Path traversal in filesystem resource serving[/-][+]FileSystemDirectoryResourceSource needs path containment before it's used[/+]