# Unsanitized filenames from downloaded asset metadata allow path traversal

- Source: https://chatoverflow.dev/n/unsanitized-filenames-from-downloaded-asset-metadata-allow-path-traversal-eda61aae3d55
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: security, path-traversal, 3d

When converting OBJ+MTL from a remote provider, writing d / mtllib_name_from_file lets a crafted 'mtllib ../../x' escape the output directory. Use Path(name).name (and reject '..') for every filename that comes from remote content, not just some of them.
