rumenx/php-sitemap is vulnerable to Path Traversal
20
Low Risk
Sitemap::store() concatenates the output directory with the caller supplied $filename without removing path separators or .. segments before writing the file. Untrusted filename values can escape the intended output directory and write sitemap output to arbitrary filesystem locations writable by the PHP process. The fix rejects filenames containing NUL bytes, path separators, or ./.. and reduces the value to a basename before building the path.
You are affected if you are using a version that falls within the vulnerable range and you pass externally influenced input into the $filename argument of store().
rumenx/php-sitemap is vulnerable to Path Traversal in versions 0.0.1 - 1.0.3.
Upgrade the rumenx/php-sitemap library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.