CWE-226 advisories

Path Traversal

What it is

A filename built from user input escapes the intended directory (../), exposing or overwriting arbitrary files.

How to fix it

Upgrade, then resolve and validate paths against an allow-listed base directory.

How to avoid it

Canonicalize paths and reject any that resolve outside the intended root; never trust user-supplied filenames.

Known Path Traversal vulnerabilities

Stateward flags Path Traversal in your own code and dependencies on every pull request.

Scan my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: 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.