pymongo 4.19.0
- Source
- https://github.com/mongodb/mongo-python-driver
- Tag scanned
4.19.0- Compared with
4.18.3(0 signals introduced since)- Files
- 526 scanned, 1516 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 40 info
- Scan time
- 24.3 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 39 of 39 warn and critical signals; 39 demoted to info.
- Disclude version
- 4.0.0
- Scanned (UTC)
- 2026-10-15 09:26
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
= # Bound the decompressed output during decompression to avoid # allocating a huge buffer before the size check runs.likely benign zlib decompressobj used to decompress MongoDB wire messages with a size bound.Reasoning
This is the standard zlib decompressobj used for MongoDB wire-protocol compression with a bounded output size. It is a legitimate decompression of network data, not an embedded payload.
-
likely benign Test evaluates a client repr string to check round-trip equality.
Reasoning
eval on repr of a MongoClient in a test to verify round-tripping of repr. The base64 import co-occurrence is incidental. Test-only, no obfuscation.
-
likely benign Test evaluates self-generated repr of a client object.
Reasoning
Same eval(the_repr) round-trip test pattern; the argument is a repr generated by the test itself, not attacker-controlled input.
-
likely benign Test evaluates self-generated repr of a client object.
Reasoning
Same repr round-trip eval in a test helper; no external input reaches it.
-
=likely benign Test fixture bytes literal encoding UTF-8 snowman characters.Reasoning
A bytes literal of UTF-8 encoded snowman characters used as test data for unicode handling. Expected test fixture content.
-
=likely benign Test helper evaluates repr of an object to verify round-tripping.Reasoning
eval(repr(obj)) in an assertion helper checks repr round-tripping of driver objects in tests. Input is internally generated.
-
return awaitlikely benign Base64 ciphertext test vector for explicit encryption tests.Reasoning
A base64 string is a ciphertext test vector for client-side field-level encryption (subType 06 binary), a standard fixture in driver tests.
-
: }}likely benign Base64 encrypted binary test vector in extended JSON.Reasoning
Same base64 encrypted-value test vector embedded in extended JSON for encryption tests.
-
return awaitlikely benign Base64 ciphertext test vector for explicit encryption tests.Reasoning
Another base64 ciphertext test vector for explicit encryption, consistent with the surrounding test cases.
-
: }}likely benign Base64 encrypted binary test vector in extended JSON.Reasoning
Base64 encrypted binary test vector in extended JSON, matching the pattern of the other encryption fixtures.
-
=likely benign Raw BSON byte fixture for testing embedded document decoding.Reasoning
A hand-built BSON byte sequence used to test raw BSON decoding; the bytes are a well-formed document structure, consistent with a BSON test.
-
=likely benign Base64-encoded local master key used by encryption test helpers.Reasoning
A base64-encoded test master key for client-side encryption tests, decoded at import. Test key material, not a malicious payload.
-
PYTHON=/opt/python/cp310-cp310/bin/python -
likely benign BSON byte fixture for decode_all test with a hello world document.
Reasoning
A BSON byte literal encoding a simple document with a 'hello world' string, passed to decode_all in a BSON test. Standard test data.
-
likely benign Test fixture of a BSON-encoded document as a bytes literal.
Reasoning
This is the PyMongo BSON test suite; the bytes literals are hand-written BSON wire-format fixtures used to test decode_iter. The hex escapes are the expected format for binary test vectors, not obfuscation.
-
likely benign BSON binary test vector wrapped in BytesIO.
Reasoning
Same BSON wire-format test fixture passed to BytesIO for decoding tests in a BSON library's test suite.
-
likely benign BSON binary fixture in a decoding test.
Reasoning
BSON test vector in the bson library's own test file; the escapes encode a length-prefixed document with a string field, consistent with a serialization test.
-
likely benign BSON binary fixture in a decoding test.
Reasoning
Identical BSON wire-format fixture pattern in the library's tests; expected for binary-format testing.
-
, b b blikely benign BSON DBRef binary fixture for an encoding test.Reasoning
Hand-built BSON bytes encoding a DBRef document, used to verify encoding output in the bson test suite. Legitimate test data.
-
=likely benign Round-trip repr test helper using eval on the object's repr.Reasoning
assertRepr evaluates repr(obj) in a test to verify round-tripping of objects. The eval input is the object's own repr, not external data. Benign test idiom.
-
=likely benign eval of repr(obj) in a repr round-trip test.Reasoning
Same assertRepr helper; eval is applied to repr of a test object for a round-trip check. No untrusted input.
-
likely benign BSON binary fixture in a test assertion.
Reasoning
BSON wire-format fixture used in an assertEqual comparison in the library test suite.
-
likely benign Round-trip eval of a tzinfo repr in a test.
Reasoning
Test asserts repr of eval(repr(tz)) for a FixedOffset tzinfo; round-trip repr check on a local object.
-
=likely benign Pickled DBRef fixture for compatibility testing.Reasoning
Bytes literal beginning with 0x80 0x04 (pickle protocol 4 header) containing a pickled DBRef, used to test unpickling compatibility in the bson test suite. Test fixture, not a live payload.
-
=likely benign Pickled DBRef bytes fixture for unpickle tests.Reasoning
Pickle protocol fixture with embedded DBRef class reference, used in the library's pickling tests. Expected test data.
-
=likely benign eval of repr(obj) to verify DatetimeMS round-trip.Reasoning
Test evaluates repr of a DatetimeMS object and compares it back for equality. Local round-trip check with no external input.
-
likely benign eval of a client repr string in a round-trip test.
Reasoning
Test evaluates the repr of a MongoClient to rebuild and compare a client. The 'base64' import flag is a spurious decoder match; the eval input is the locally generated repr. Benign test code.
-
likely benign eval of client repr in a round-trip test.
Reasoning
Same eval of a locally generated repr in a PyMongo client test; no untrusted input reaches eval.
-
likely benign eval of a client repr string in a PyMongo test checking that the repr round-trips.
Reasoning
The eval is applied to repr(client) in a repr round-trip assertion inside a test suite. The input is the library's own repr output, not attacker-controlled data, so this is a legitimate test pattern.
-
=likely benign Test fixture of UTF-8 encoded bytes in a PyMongo collection test.Reasoning
The bytes literal is a UTF-8 encoding of snowman characters used as test data for string and bytes handling. Escaped bytes in a test fixture are expected and do not indicate a hidden payload.
-
=likely benign zlib round-trip assertion in a compression support test.Reasoning
The test compresses data with a context and then decompresses it with zlib to verify the round trip. The decompressed content is the test's own data, not a runtime-loaded payload.
-
=likely benign Test helper that evals repr(obj) to check round-tripping of BSON or client objects.Reasoning
This is the same repr round-trip helper used across PyMongo tests. It evals the repr of a library object the test created, so the input is not untrusted.
-
returnlikely benign Base64 ciphertext test vector in a PyMongo encryption test.Reasoning
The base64 string is a client-side encryption test vector, and the surrounding code is an explicit-encryption test. Its high entropy is expected for ciphertext in a test fixture.
-
: }}likely benign Extended-JSON $binary test vector containing base64 ciphertext.Reasoning
This is the same base64 encrypted-value test vector embedded in extended JSON with a $binary wrapper. It is a standard test fixture.
-
returnlikely benign Base64 encrypted-value test vector in a PyMongo encryption test.Reasoning
This is another base64 ciphertext test vector for explicit encryption tests, consistent with the rest of the encryption test suite.
-
: }}likely benign Extended-JSON $binary test vector containing base64 ciphertext.Reasoning
This is the extended-JSON $binary form of the preceding base64 test vector, used as a fixture in the encryption tests.
-
=likely benign Test helper using eval(repr(obj)) to verify round-tripping.Reasoning
The eval is applied to repr(obj) inside a test helper that checks the repr round-trip. It is a standard test pattern on the library's own objects.
-
=likely benign BSON binary test fixture in a raw BSON test.Reasoning
The bytes literal is a hand-written BSON document used as a test fixture for raw BSON decoding. Escaped binary is the normal way to express BSON test data.
-
=likely benign Shared BSON document fixture in PyMongo tests.Reasoning
This is a shared raw BSON test fixture containing an encoded document with a name and address. It is expected test data for the BSON library.
-
=likely benign Test helper using eval(repr(obj)) to verify write concern object repr round-tripping.Reasoning
The eval of repr(obj) is the same round-trip test helper used throughout the PyMongo suite, operating on library objects.
Reproduce This Scan
Run disclude locally to verify. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
&&