Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

cthackers/adm-zip
master @ 094d08c
8
Fixes
1
CVEs
HIGH
Peak severity
83.3%
Coverage
Highlights
Path Traversal: 6 prior fixes. Scrutinize any change in this area.
adm-zip.js: most-fixed (8 issues). Treat as high-risk during review.
6 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Path Traversal: The library has suffered from repeated path traversal vulnerabilities due to insufficient sanitization of archive entry names, allowing malicious zip files to escape the target extraction directory via directory traversal sequences. Proper canonicalization and a robust prefix verification against the target directory are critical.
Denial of Service: Recursive asynchronous processes (such as traversing and adding local folders) can cause stack overflows when dealing with massive file trees. Deferring recursive tail-calls using mechanism such as process.nextTick is necessary to prevent process crashes.
Insecure File Permissions: Extracted files may default to overly permissive or incorrect permissions if the original Unix file attributes stored in the ZIP archive are ignored during the write phase.