PyPI / pymongo / 4.19.0

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
527 scanned, 1515 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 41 info
Scan time
25.2 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 39 of 39 warn and critical signals; 39 demoted to info.
Disclude version
4.1.0
Scanned (UTC)
2026-10-22 08:12

Signals

Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.

  1. info identifier-low-length doc/_templates/layout.html:9:15

    [embedded javascript] 19 of 37 non-conventional identifiers are single-character (51%) (token pass, confidence 0.50)

  2. info warn → info by review decoder-decompress-payload pymongo/compression_support.py:200:14

    file imports decoder module(s) zlib and calls `.decompress()` — embedded payload decompressed at runtime (ast pass, confidence 0.75)

    
            dc = zlib.decompressobj()
            # Bound the decompressed output during decompression to avoid
            # allocating a huge buffer before the size check runs.
    likely benign LLM, confidence 0.93 Bounded zlib decompression of wire-protocol message data in the MongoDB driver.
    Reasoning

    zlib.decompressobj with a comment about bounding output size is standard decompression handling in the pymongo driver for wire-protocol compression, not a hidden payload.

  3. info warn → info by review decoder-import-with-exec test/asynchronous/test_client.py:1203:20

    file imports decoder module(s) base64 and calls `exec`/`eval`/`compile` — multi-stage payload shape (ast pass, confidence 0.80)

    
            async with eval(the_repr) as client_two:
                self.assertEqual(client_two, client)
    likely benign LLM, confidence 0.95 Test evaluating a client repr string to verify round-tripping.
    Reasoning

    eval of repr(client) round-trip in a test checking object repr; base64 import is incidental. No malicious multi-stage shape in context.

  4. info warn → info by review dynamic-execution test/asynchronous/test_client.py:1203:20

    `eval` called on a non-literal expression (ast pass, confidence 0.70)

    
            async with eval(the_repr) as client_two:
                self.assertEqual(client_two, client)
    likely benign LLM, confidence 0.94 Test eval of a repr string for round-trip verification.
    Reasoning

    eval on repr(obj)-derived text in a driver test is a known idiom for repr round-trip checks; the input is not attacker-controlled.

  5. info warn → info by review dynamic-execution test/asynchronous/test_client.py:1224:20

    `eval` called on a non-literal expression (ast pass, confidence 0.70)

    
            async with eval(the_repr) as client_two:
                self.assertEqual(client_two, client)
    likely benign LLM, confidence 0.94 Test eval of a repr string in client repr check.
    Reasoning

    Same repr round-trip eval pattern in a test; benign test scaffolding.

  6. info warn → info by review payload-bytes-literal test/asynchronous/test_collection.py:1237:13

    concatenated bytes literal contains 336 `\xNN` escapes (100% of content) — binary payload shape (ast pass, confidence 0.85)

            data = (
                b"a\xe2\x98\x83\xe2\x98\x83\xe2\x98\x83\xe2\x98\x83"
                b"\xe2\x98\x83\xe2\x98\x83\xe2\x98\x83\xe2\x98\x83"
                b"\xe2\x98\x83\xe2\x98\x83\xe2\x98\x83\xe2\x98\x83"
    likely benign LLM, confidence 0.95 Test fixture bytes literal encoding UTF-8 snowman characters.
    Reasoning

    Bytes literal with UTF-8 snowman encodings is test data for BSON/string encoding; not an obfuscated payload.

  7. info warn → info by review dynamic-execution test/asynchronous/test_connection_monitoring.py:432:19

    `eval` called on a non-literal expression (ast pass, confidence 0.70)

        def assertRepr(self, obj):
            new_obj = eval(repr(obj))
            self.assertEqual(type(new_obj), type(obj))
            self.assertEqual(repr(new_obj), repr(obj))
    likely benign LLM, confidence 0.94 Test helper evaluating repr of an object to check round-tripping.
    Reasoning

    eval(repr(obj)) in assertRepr helper verifying repr round-trip for test objects; a standard test idiom.

  8. info warn → info by review encoding-base64 test/asynchronous/test_encryption.py:1514:14

    base64-like blob (112 bytes, compression ratio 0.98) (raw pass, confidence 0.60)

            return await self._test_explicit(
                "AQGVERPgAAAAAAAAAAAAAAAC5DbBSwPwfSlBrDtRuglvNvCXD1KzDuCKY2P+4bRFtHDjpTOE2XuytPAUaAbXf1orsPq59PVZmsbTZbt2CB8qaQ=="
            )
    likely benign LLM, confidence 0.94 Encrypted BSON binary test vector passed to explicit-encryption test.
    Reasoning

    Base64 string is a CSFLE/queryable encryption test vector in a binary subtype-6 format, consistent with encryption test fixtures.

  9. info warn → info by review encoding-base64 test/asynchronous/test_encryption.py:1522:28

    base64-like blob (112 bytes, compression ratio 0.98) (raw pass, confidence 0.60)

                "$binary": {
                    "base64": "AQGVERPgAAAAAAAAAAAAAAAC5DbBSwPwfSlBrDtRuglvNvCXD1KzDuCKY2P+4bRFtHDjpTOE2XuytPAUaAbXf1orsPq59PVZmsbTZbt2CB8qaQ==",
                    "subType": "06"}
            }}"""
    likely benign LLM, confidence 0.94 Extended JSON binary test vector for client-side encryption tests.
    Reasoning

    Same base64 BSON binary (subtype 06) test vector embedded in extended JSON for encryption tests.

  10. info warn → info by review encoding-base64 test/asynchronous/test_encryption.py:1539:14

    base64-like blob (112 bytes, compression ratio 0.93) (raw pass, confidence 0.60)

            return await self._test_explicit(
                "ARgj/gAAAAAAAAAAAAAAAAACwFd+Y5Ojw45GUXNvbcIpN9YkRdoHDHkR4kssdn0tIMKlDQOLFkWFY9X07IRlXsxPD8DcTiKnl6XINK28vhcGlg=="
            )
    likely benign LLM, confidence 0.94 Encrypted BSON binary test vector for explicit encryption test.
    Reasoning

    Another encryption test vector in the fixed-format binary subtype-6 layout used in driver test suites.

  11. info warn → info by review encoding-base64 test/asynchronous/test_encryption.py:1547:28

    base64-like blob (112 bytes, compression ratio 0.93) (raw pass, confidence 0.60)

                "$binary": {
                    "base64": "ARgj/gAAAAAAAAAAAAAAAAACwFd+Y5Ojw45GUXNvbcIpN9YkRdoHDHkR4kssdn0tIMKlDQOLFkWFY9X07IRlXsxPD8DcTiKnl6XINK28vhcGlg==",
                    "subType": "06"}
            }}"""
    likely benign LLM, confidence 0.94 Extended JSON binary test vector for client-side encryption tests.
    Reasoning

    Extended JSON duplicate of the same encryption test vector; benign test data.

  12. info warn → info by review payload-bytes-literal test/asynchronous/test_raw_bson.py:120:13

    concatenated bytes literal contains 41 `\xNN` escapes (85% of content) — binary payload shape (ast pass, confidence 0.85)

            bson_string = (
                b"D\x00\x00\x00\x04embedded\x005\x00\x00\x00\x030\x00-\x00\x00\x00"
                b"\tdate\x00\x8a\xd6\xb9\xbaM\x01\x00\x00\x05_id\x00\x10\x00\x00"
                b"\x00\x03eI_\x97\x8f\xabo\x02\xff`L\x87\xad\x85\xbf\x9f\x00\x00"
    likely benign LLM, confidence 0.93 Raw BSON byte fixture for embedded document parsing test.
    Reasoning

    Bytes literal is a hand-written BSON document with embedded date and ObjectId fields, typical for raw BSON parsing tests.

  13. info warn → info by review encoding-base64 test/helpers_shared.py:87:7

    base64-like blob (71 bytes, compression ratio 1.15) (raw pass, confidence 0.60)

    LOCAL_MASTER_KEY = base64.b64decode(
        b"Mng0NCt4ZHVUYUJCa1kxNkVyNUR1QURhZ2h2UzR2d2RrZzh0cFBwM3R6NmdWMDFBMUN3YkQ"
        b"5aXRRMkhGRGdQV09wOGVNYUMxT2k3NjZKelhaQmRCZGJkTXVyZG9uSjFk"
    )
    likely benign LLM, confidence 0.88 Test-only local master key base64-encoded in a helper module.
    Reasoning

    Base64 string decodes to a local master key used for encryption tests; it is a readable ASCII key-like string in a test helper, a fixture rather than a hidden payload. Slight doubt since it is a key-like literal.

  14. info dynamic-execution test/lambda/build_internal.sh:5:1

    command name is a variable (`$PYTHON`) that this file sets only to plain text (ast pass, confidence 0.40)

    PYTHON=/opt/python/cp310-cp310/bin/python
    $PYTHON -m pip install -v -e .
  15. info warn → info by review payload-bytes-literal test/test_bson.py:308:17

    concatenated bytes literal contains 32 `\xNN` escapes (100% of content) — binary payload shape (ast pass, confidence 0.85)

                decode_all(
                    b"\x1b\x00\x00\x00\x0e\x74\x65\x73\x74"
                    b"\x00\x0c\x00\x00\x00\x68\x65\x6c\x6c"
                    b"\x6f\x20\x77\x6f\x72\x6c\x64\x00\x00"
    likely benign LLM, confidence 0.94 BSON byte fixture for decode_all test.
    Reasoning

    Bytes literal encoding a BSON document with the ASCII string 'hello world', consistent with BSON decode tests.

  16. info warn → info by review payload-bytes-literal test/test_bson.py:318:21

    concatenated bytes literal contains 32 `\xNN` escapes (100% of content) — binary payload shape (ast pass, confidence 0.85)

                    decode_iter(
                        b"\x1b\x00\x00\x00\x0e\x74\x65\x73\x74"
                        b"\x00\x0c\x00\x00\x00\x68\x65\x6c\x6c"
                        b"\x6f\x20\x77\x6f\x72\x6c\x64\x00\x00"
    likely benign LLM, confidence 0.95 Concatenated BSON byte fixture used in a decoding test.
    Reasoning

    This is the pymongo BSON test suite; the bytes literals are hand-written BSON wire-format fixtures for decode_iter, a legitimate test-vector pattern.

  17. info warn → info by review payload-bytes-literal test/test_bson.py:330:25

    concatenated bytes literal contains 32 `\xNN` escapes (100% of content) — binary payload shape (ast pass, confidence 0.85)

                        BytesIO(
                            b"\x1b\x00\x00\x00\x0e\x74\x65\x73\x74"
                            b"\x00\x0c\x00\x00\x00\x68\x65\x6c\x6c"
                            b"\x6f\x20\x77\x6f\x72\x6c\x64\x00\x00"
    likely benign LLM, confidence 0.95 BSON wire-format bytes fixture for a BytesIO decode test.
    Reasoning

    Same BSON binary test fixture in a BytesIO-based decode test in a bson library test file; expected binary shape.

  18. info warn → info by review payload-bytes-literal test/test_bson.py:377:17

    concatenated bytes literal contains 32 `\xNN` escapes (100% of content) — binary payload shape (ast pass, confidence 0.85)

                (
                    b"\x1a\x00\x00\x00\x0e\x74\x65\x73\x74"
                    b"\x00\x0c\x00\x00\x00\x68\x65\x6c\x6c"
                    b"\x6f\x20\x77\x6f\x72\x6c\x64\x00\x00"
    likely benign LLM, confidence 0.95 BSON byte-string test vector.
    Reasoning

    BSON encoded document fixture in a bson library test suite; the escapes encode a known document.

  19. info warn → info by review payload-bytes-literal test/test_bson.py:392:17

    concatenated bytes literal contains 32 `\xNN` escapes (100% of content) — binary payload shape (ast pass, confidence 0.85)

                (
                    b"\x1b\x00\x00\x00\x0e\x74\x65\x73\x74"
                    b"\x00\x0c\x00\x00\x00\x68\x65\x6c\x6c"
                    b"\x6f\x20\x77\x6f\x72\x6c\x64\x00\x00"
    likely benign LLM, confidence 0.95 BSON byte-string test vector.
    Reasoning

    BSON encoded document test vector in the bson test suite, matching the surrounding fixtures.

  20. info warn → info by review payload-bytes-literal test/test_bson.py:658:13

    concatenated bytes literal contains 33 `\xNN` escapes (90% of content) — binary payload shape (ast pass, confidence 0.85)

                encode({"ref": DBRef("coll", a)}),
                b"\x2f\x00\x00\x00\x03ref\x00\x25\x00\x00\x00\x02"
                b"$ref\x00\x05\x00\x00\x00coll\x00\x07$id\x00\x00"
                b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x00"
    likely benign LLM, confidence 0.93 BSON DBRef encoding fixture in a test.
    Reasoning

    Hand-built BSON DBRef encoding bytes in a serialization test of a BSON library; structured wire-format data, not a payload.

  21. info warn → info by review decoder-import-with-exec test/test_bson.py:980:19

    file imports decoder module(s) pickle and calls `exec`/`eval`/`compile` — multi-stage payload shape (ast pass, confidence 0.80)

        def assertRepr(self, obj):
            new_obj = eval(repr(obj))
            self.assertEqual(type(new_obj), type(obj))
            self.assertEqual(repr(new_obj), repr(obj))
    likely benign LLM, confidence 0.90 Test helper that evals repr(obj) to check round-tripping.
    Reasoning

    assertRepr round-trips an object's repr through eval in a serialization test; the input is the test's own object, so no untrusted input reaches eval.

  22. info warn → info by review dynamic-execution test/test_bson.py:980:19

    `eval` called on a non-literal expression (ast pass, confidence 0.70)

        def assertRepr(self, obj):
            new_obj = eval(repr(obj))
            self.assertEqual(type(new_obj), type(obj))
            self.assertEqual(repr(new_obj), repr(obj))
    likely benign LLM, confidence 0.90 eval of repr output in a repr round-trip test.
    Reasoning

    Same repr round-trip eval in a test helper; the argument is generated from a locally constructed object.

  23. info warn → info by review payload-bytes-literal test/test_bson.py:1138:13

    concatenated bytes literal contains 33 `\xNN` escapes (92% of content) — binary payload shape (ast pass, confidence 0.85)

            self.assertEqual(
                b"\x2c\x00\x00\x00"
                b"\x02_id\x00\x02\x00\x00\x00b\x00"
                b"\x03b\x00"
    likely benign LLM, confidence 0.93 BSON bytes fixture in an assertion.
    Reasoning

    BSON wire-format fixture for an assertEqual in a bson decoding test.

  24. info warn → info by review dynamic-execution test/test_bson.py:1481:18

    `eval` called on a non-literal expression (ast pass, confidence 0.70)

            self.assertEqual(
                repr(eval(repr(tz))), "FixedOffset(datetime.timedelta(seconds=2520), 'forty-two')"
            )
    likely benign LLM, confidence 0.92 Repr round-trip eval in a timezone serialization test.
    Reasoning

    eval(repr(tz)) round-trip check for a tzinfo object in a bson test; not fed external input.

  25. info warn → info by review payload-bytes-literal test/test_bson.py:1602:13

    concatenated bytes literal contains 36 `\xNN` escapes (62% of content) — binary payload shape (ast pass, confidence 0.85)

            pickled_with_3 = (
                b"\x80\x04\x95q\x00\x00\x00\x00\x00\x00\x00\x8c\n"
                b"bson.dbref\x94\x8c\x05DBRef\x94\x93\x94)\x81\x94}"
                b"\x94(\x8c\x12_DBRef__collection\x94\x8c\x03foo\x94"
    likely benign LLM, confidence 0.90 Pickled DBRef byte fixture in a compatibility test.
    Reasoning

    Pickle protocol bytes fixture for a DBRef pickle compatibility test in a bson library; the content is a legitimate serialized object used for testing.

  26. info warn → info by review payload-bytes-literal test/test_bson.py:1612:13

    concatenated bytes literal contains 43 `\xNN` escapes (63% of content) — binary payload shape (ast pass, confidence 0.85)

            pickled_with_3 = (
                b"\x80\x04\x95\x81\x00\x00\x00\x00\x00\x00\x00\x8c"
                b"\nbson.dbref\x94\x8c\x05DBRef\x94\x93\x94)\x81\x94}"
                b"\x94(\x8c\x12_DBRef__collection\x94\x8c\x03foo\x94"
    likely benign LLM, confidence 0.90 Pickled DBRef byte fixture in a compatibility test.
    Reasoning

    Pickle protocol test fixture for DBRef in the bson test suite, a standard pattern for checking unpickling compatibility.

  27. info warn → info by review dynamic-execution test/test_bson.py:1989:30

    `eval` called on a non-literal expression (ast pass, confidence 0.70)

                obj = DatetimeMS(value)
                self.assertEqual(eval(repr(obj)), obj)
    
        def test_datetime_ms_invalid_type(self):
    likely benign LLM, confidence 0.90 Repr round-trip eval in a DatetimeMS test.
    Reasoning

    Round-trip eval of repr(DatetimeMS) in a bson test; locally constructed object, not untrusted input.

  28. info warn → info by review decoder-import-with-exec test/test_client.py:1174:14

    file imports decoder module(s) base64 and calls `exec`/`eval`/`compile` — multi-stage payload shape (ast pass, confidence 0.80)

    
            with eval(the_repr) as client_two:
                self.assertEqual(client_two, client)
    likely benign LLM, confidence 0.88 eval of a client repr in a round-trip test.
    Reasoning

    In the pymongo client test, eval(the_repr) reconstructs a client from its own repr to test repr round-tripping; the input is generated locally, not external.

  29. info warn → info by review dynamic-execution test/test_client.py:1174:14

    `eval` called on a non-literal expression (ast pass, confidence 0.70)

    
            with eval(the_repr) as client_two:
                self.assertEqual(client_two, client)
    likely benign LLM, confidence 0.88 eval of a client repr in a round-trip test.
    Reasoning

    Same client repr round-trip eval in a test of pymongo; the argument comes from the test's own client object.

  30. info warn → info by review dynamic-execution test/test_client.py:1195:14

    `eval` called on a non-literal expression (ast pass, confidence 0.70)

    
            with eval(the_repr) as client_two:
                self.assertEqual(client_two, client)
    likely benign LLM, confidence 0.93 Test evaluates the repr of a MongoClient to verify round-tripping.
    Reasoning

    eval of a repr string in a PyMongo test suite is a round-trip check of a client's repr; the test file is a test, not shipped runtime code. Not malicious, though eval is generally a risk pattern.

  31. info warn → info by review payload-bytes-literal test/test_collection.py:1223:13

    concatenated bytes literal contains 336 `\xNN` escapes (100% of content) — binary payload shape (ast pass, confidence 0.85)

            data = (
                b"a\xe2\x98\x83\xe2\x98\x83\xe2\x98\x83\xe2\x98\x83"
                b"\xe2\x98\x83\xe2\x98\x83\xe2\x98\x83\xe2\x98\x83"
                b"\xe2\x98\x83\xe2\x98\x83\xe2\x98\x83\xe2\x98\x83"
    likely benign LLM, confidence 0.95 Test data containing UTF-8 encoded snowman characters as bytes.
    Reasoning

    Bytes literal with UTF-8 snowman encodings is a test fixture for unicode handling in BSON/collections; typical test data, not a dropper payload.

  32. info warn → info by review decoder-decompress-payload test/test_compression_support.py:172:26

    file imports decoder module(s) zlib and calls `.decompress()` — embedded payload decompressed at runtime (ast pass, confidence 0.75)

            compressed = ctx.compress(data)
            self.assertEqual(zlib.decompress(compressed), data)
    likely benign LLM, confidence 0.93 Test asserts zlib round-trip of locally compressed data.
    Reasoning

    zlib.decompress round-trip assertion on data the test itself compressed; a standard compression test, not an embedded payload executed at runtime.

  33. info warn → info by review dynamic-execution test/test_connection_monitoring.py:430:19

    `eval` called on a non-literal expression (ast pass, confidence 0.70)

        def assertRepr(self, obj):
            new_obj = eval(repr(obj))
            self.assertEqual(type(new_obj), type(obj))
            self.assertEqual(repr(new_obj), repr(obj))
    likely benign LLM, confidence 0.93 Test helper evals repr of an object to check round-trip.
    Reasoning

    Same repr/eval round-trip helper used in PyMongo tests to check object repr fidelity; eval input is repr of test objects, not external input.

  34. info warn → info by review encoding-base64 test/test_encryption.py:1508:14

    base64-like blob (112 bytes, compression ratio 0.98) (raw pass, confidence 0.60)

            return self._test_explicit(
                "AQGVERPgAAAAAAAAAAAAAAAC5DbBSwPwfSlBrDtRuglvNvCXD1KzDuCKY2P+4bRFtHDjpTOE2XuytPAUaAbXf1orsPq59PVZmsbTZbt2CB8qaQ=="
            )
    likely benign LLM, confidence 0.90 Base64 encoded binary test vector for client-side encryption.
    Reasoning

    Base64 blob with a BSON binary subtype 06 (queryable encryption ciphertext) in a client-side encryption test fixture; expected test vector data.

  35. info warn → info by review encoding-base64 test/test_encryption.py:1516:28

    base64-like blob (112 bytes, compression ratio 0.98) (raw pass, confidence 0.60)

                "$binary": {
                    "base64": "AQGVERPgAAAAAAAAAAAAAAAC5DbBSwPwfSlBrDtRuglvNvCXD1KzDuCKY2P+4bRFtHDjpTOE2XuytPAUaAbXf1orsPq59PVZmsbTZbt2CB8qaQ==",
                    "subType": "06"}
            }}"""
    likely benign LLM, confidence 0.90 Extended JSON binary test vector for encryption tests.
    Reasoning

    Same base64 BSON binary test vector embedded in extended JSON for encryption tests; consistent with legitimate fixture data.

  36. info warn → info by review encoding-base64 test/test_encryption.py:1533:14

    base64-like blob (112 bytes, compression ratio 0.93) (raw pass, confidence 0.60)

            return self._test_explicit(
                "ARgj/gAAAAAAAAAAAAAAAAACwFd+Y5Ojw45GUXNvbcIpN9YkRdoHDHkR4kssdn0tIMKlDQOLFkWFY9X07IRlXsxPD8DcTiKnl6XINK28vhcGlg=="
            )
    likely benign LLM, confidence 0.90 Base64 encoded binary test vector for client-side encryption.
    Reasoning

    Another base64 encryption test vector with subtype 06 in a test file; legitimate fixture.

  37. info warn → info by review encoding-base64 test/test_encryption.py:1541:28

    base64-like blob (112 bytes, compression ratio 0.93) (raw pass, confidence 0.60)

                "$binary": {
                    "base64": "ARgj/gAAAAAAAAAAAAAAAAACwFd+Y5Ojw45GUXNvbcIpN9YkRdoHDHkR4kssdn0tIMKlDQOLFkWFY9X07IRlXsxPD8DcTiKnl6XINK28vhcGlg==",
                    "subType": "06"}
            }}"""
    likely benign LLM, confidence 0.90 Extended JSON binary test vector for encryption tests.
    Reasoning

    Extended JSON wrapper of a base64 BSON binary test vector; legitimate test fixture.

  38. info warn → info by review dynamic-execution test/test_operations.py:30:19

    `eval` called on a non-literal expression (ast pass, confidence 0.70)

        def assertRepr(self, obj):
            new_obj = eval(repr(obj))
            self.assertEqual(type(new_obj), type(obj))
            self.assertEqual(repr(new_obj), repr(obj))
    likely benign LLM, confidence 0.93 Test helper evals repr of an object to verify round-trip.
    Reasoning

    Repr/eval round-trip helper in a PyMongo operations test; same benign test pattern.

  39. info warn → info by review payload-bytes-literal test/test_raw_bson.py:120:13

    concatenated bytes literal contains 41 `\xNN` escapes (85% of content) — binary payload shape (ast pass, confidence 0.85)

            bson_string = (
                b"D\x00\x00\x00\x04embedded\x005\x00\x00\x00\x030\x00-\x00\x00\x00"
                b"\tdate\x00\x8a\xd6\xb9\xbaM\x01\x00\x00\x05_id\x00\x10\x00\x00"
                b"\x00\x03eI_\x97\x8f\xabo\x02\xff`L\x87\xad\x85\xbf\x9f\x00\x00"
    likely benign LLM, confidence 0.93 Test fixture of raw BSON bytes.
    Reasoning

    Bytes literal encoding a BSON document is a raw BSON test fixture for the raw_bson module; expected binary test data.

  40. info warn → info by review payload-bytes-literal test/test_raw_bson_shared.py:38:5

    concatenated bytes literal contains 37 `\xNN` escapes (73% of content) — binary payload shape (ast pass, confidence 0.85)

    TEST_RAW_BSON = (
        b"Z\x00\x00\x00\x07_id\x00Um\xf6\x8bn2\xab!\xa9^\x07\x85\x02name\x00\t"
        b"\x00\x00\x00Sherlock\x00\x04addresses\x00&\x00\x00\x00\x030\x00\x1e"
        b"\x00\x00\x00\x02street\x00\r\x00\x00\x00Baker Street\x00\x00\x00\x00"
    likely benign LLM, confidence 0.93 Shared raw BSON test fixture bytes.
    Reasoning

    Shared BSON byte fixture encoding a sample document (Sherlock Baker Street) for raw BSON tests; legitimate test data.

  41. info warn → info by review dynamic-execution test/test_write_concern.py:72:19

    `eval` called on a non-literal expression (ast pass, confidence 0.70)

        def assertRepr(self, obj):
            new_obj = eval(repr(obj))
            self.assertEqual(type(new_obj), type(obj))
            self.assertEqual(repr(new_obj), repr(obj))
    likely benign LLM, confidence 0.93 Test helper evals repr of an object to verify round-trip.
    Reasoning

    Repr/eval round-trip helper in a write concern test; benign test utility pattern.

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.

cargo install disclude --version 4.1.0
git clone https://github.com/mongodb/mongo-python-driver mongo-python-driver && cd mongo-python-driver
git checkout 4.19.0
disclude scan --severity info --diff 4.18.3 .