Security context

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

streamich/memfs
master @ 29b912b
3
Fixes
0
CVEs
HIGH
Peak severity
0.0%
Coverage
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
packages/fs-core/src/Node.ts: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix 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: Snapshot restoration mechanisms failed to sanitize entry names, allowing relative directory traversal sequences to escape the intended destination root and write files to the host system.
Information Disclosure: Negative file truncation values caused the size parameter to wrap and become negative, driving a subarray slice on unsafe-allocated buffers that leaked uninitialized memory.
Auth Bypass: Permission and existence checks incorrectly succeeded on restricted nodes (such as chmod 000) by missing proper permission validation during link resolution.