Highlights
Injection: 1 prior fix. Scrutinize any change in this area.
bson/codec.py: most-fixed (2 issues). 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.
Out-of-bounds Read: The BSON decoder is vulnerable to Out-of-bounds Reads if buffer index tracking is updated before binary data extraction, leading to potential crashes or memory exposure when parsing maliciously crafted BSON objects.
Injection: Allowing null bytes in cstring element names enables BSON injection attacks, which can corrupt document structures and allow attackers to inject arbitrary fields into downstream databases.