Skip to content
vetkitChecksChangelogDocumentation

vetkit.py.path-traversal.request-to-file

A filesystem path built from request input is opened, served or modified. Sequences such as ../ let attackers read or overwrite arbitrary files.

Last updated:

Suite: Security

python

A filesystem path built from request input is opened, served or modified. Sequences such as ../ let attackers read or overwrite arbitrary files.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Use werkzeug.utils.secure_filename / send_from_directory / safe_join, or resolve the path and verify it stays under the base directory before using it.

References

Source: packages/engine/rules/sast/python.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.