A filename built from user input escapes the intended directory (../), exposing or overwriting arbitrary files.
Upgrade, then resolve and validate paths against an allow-listed base directory.
Canonicalize paths and reject any that resolve outside the intended root; never trust user-supplied filenames.
Stateward flags Path Traversal in your own code and dependencies on every pull request.
Scan my repoSources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.