Skip to content
vetkitChecksChangelogDocumentation

vetkit.js.path-traversal.archive-entry

A file path is built from an archive entry name while extracting. Entries named ../../somewhere are written outside the target directory (zip slip).

Last updated:

Suite: Security

javascript, typescript

A file path is built from an archive entry name while extracting. Entries named ../../somewhere are written outside the target directory (zip slip).

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Resolve every entry path with path.resolve(dest, entryName) and skip entries whose result does not start with dest + path.sep; also skip absolute paths and symlink entries.

References

Source: packages/engine/rules/sast/javascript.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.