CVE-2026-87818 in GitPython's diff API enables filesystem reconnaissance through an information oracle. The vulnerability lives in how --no-index (a git option for comparing files outside repository context) interacts with --ignore-matching-lines and git's exit codes. An attacker who controls the regex pattern submitted to the diff API can determine whether specific text exists in arbitrary files by observing whether git returns a 'match found' exit code (1) or 'no matches' exit code (0). This is a chosen-prefix oracle: each query extracts one bit about file contents. Secrets stored line-by-line in config files—API tokens, database credentials, SSH keys—are recoverable byte-by-byte through repeated queries.

The critical insight is that this isn't just a bug to patch; it's an API design paradox. GitPython's high-level diff API markets itself as a convenience layer for developers who don't want to reason about git internals. But --no-index exists precisely because git refuses to make that promise—it explicitly allows operations outside repository safety boundaries. By surfacing this option through a convenience wrapper, the library implicitly guarantees something it cannot deliver: that diff() means 'diff repository content only.'

Defenders should treat this as post-compromise escalation, but should not treat it as low priority. The EPSS score (0.00228) reflects exploitation likelihood given the requirement for Python execution context—but modern application patterns (webhook handlers, AI coding assistants, CI/CD tooling, diff viewers) increasingly expose library APIs to untrusted input. The assumption that attacker-controlled input cannot reach the diff API is increasingly fragile.

The fix is not simple. Blocking --no-index breaks legitimate use cases. Allowing it creates the oracle. The underlying issue is that library wrappers around system binaries need explicit allowlists for permitted options rather than permitting all options by default. Git's argument surface is enormous and poorly documented, making this an ergonomics problem as much as a security fix. Beyond patching this specific option, audit your codebase for other git options that produce distinguishable exit states based on filesystem content—they create the same oracle primitive.

There's also a temporal dimension that the EPSS score doesn't capture: this vulnerability almost certainly existed for years before disclosure. The oracle mechanism leaves no obvious forensic trace. Even after a patch is released, the remediation cascade through transitive dependencies (GitPython is pulled through dozens of frameworks) creates a multi-hop lag window where the exposure persists.