oh-my-wiki
Audited by Socket on Sep 13, 2026
2 alerts found:
Anomalyx2No clear evidence of embedded malware in this fragment. The security-relevant concern is orchestration of external CLI binaries: detect_available() can execute attacker-controlled binaries if override_path is untrusted (PATH precedence), and build_invocation() can select alternate executables/scripts via override_cli_path. Additionally, when enabled, it can pass explicit 'dangerously-*' bypass flags that reduce sandbox/approval/safety boundaries in downstream backends. The code fragment also appears truncated/incorrect at the end of build_invocation(), lowering confidence in complete end-to-end behavior.
The code appears to implement legitimate vault-note deletion and backlink cleanup, with no clear malicious behavior. However, relpath and database-derived source_relpath are used in destructive and rewriting filesystem operations without explicit path-containment validation. If either value can be attacker-controlled or corrupted, directory traversal could cause deletion, movement, or modification of files outside the vault. Validation should resolve paths and enforce containment within the intended vault root before every filesystem operation.