Security context

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

jessicategner/pypandoc
master @ f57e9ab
2
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Credential Leakage: 1 prior fix. Scrutinize any change in this area.
pypandoc: 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.

Sandbox Escape: Document conversion processes executed without restricting input options allowed untrusted documents to read arbitrary local files or execute code. The fix mitigated this by enabling pandoc's '--sandbox' flag by default inside the internal _convert_input process.
Credential Leakage: A loose substring match on the target download URL allowed GitHub API tokens to be sent to external, attacker-controlled domains containing the 'github.com' substring. This was resolved by implementing an exact host allowlist check prior to adding sensitive headers.