Security context

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

box/box-python-sdk
main @ bf2429c
3
Fixes
0
CVEs
MEDIUM
Peak severity
100.0%
Coverage
Highlights
Information Disclosure: 2 prior fixes. Scrutinize any change in this area.
box_sdk_gen/box/errors.py: 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.

Information Disclosure: Request bodies printed in error messages may contain sensitive payload data (e.g., credentials, PII) if not sanitized. The fix added sanitization before pprint.pformat, but other error-printing paths may still leak raw data.
Information Disclosure: Exception string representations and logging can include headers and tokens, risking credential leakage. The fix introduced sanitize_dictionary, but custom exceptions or loggers might bypass it.
Denial of Service: Recursive retry logic could cause stack overflow or infinite retries under repeated failures. The fix converted to an iterative loop with a limit, but other retry paths (e.g., in auth or upload) may still be recursive or unbounded.