Files
pnpm/deps
Abdullah Alaqeel 719cc21c6f fix(audit): prune path traversal (#12087)
* fix(audit): prune path traversal

* fix(audit): memoize placeholder set before recursion to preserve cycle reachability

The reachable-vulnerabilities getter returned a non-memoized empty Set for
back-edges, causing incomplete results for nodes in dependency cycles. Memoize
the result Set immediately so the same mutable placeholder is returned for
back-edges and filled as recursion unwinds.

* fix(audit): only memoize acyclic reachability subtrees

The placeholder-before-recursion approach only made the SCC entry node's
reachable set correct; non-entry cycle members were memoized with an
under-approximated set, dropping valid audit paths reached through them.
Cache a node's reachable vulnerabilities only when no descendant back-edges
to an ancestor; recompute cycle-touching nodes per query.

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2026-06-01 15:02:09 +02:00
..
2026-05-27 15:15:01 +02:00
2026-04-30 23:03:46 +02:00
2026-05-29 17:26:13 +02:00