Security context

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

swanhubx/swanlab
main @ cb5c000
3
Fixes
0
CVEs
MEDIUM
Peak severity
Highlights
Information Disclosure: 1 prior fix. Scrutinize any change in this area.
swanlab.sdk.internal.pkg.log: most-fixed (1 issue). Treat as high-risk during review.
0 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: Insecure handling of upload keys allowed path traversal via dots, slashes, and spaces, exposing the filesystem to unauthorized file writes. Future file-writing utilities must strictly reject directory traversal patterns.
Injection: Lack of validation for fields written to netrc allowed carriage returns, newlines, and spaces, enabling configuration injection. Any credential-storing utility must strictly validate inputs before writing them to disk.
Information Disclosure: Diagnostic logs containing sensitive information were previously created with default permissive file permissions, exposing credentials to other local users on POSIX systems.