PyPI / pydantic_core / 2.50.1

pydantic_core 2.50.1

Source
https://github.com/pydantic/pydantic
Artifact scanned
pydantic_core-2.50.1.tar.gz (sdist · 501.5 KB · SHA-256 e50d7b94baac…)
Compared with
pydantic_core-2.50.0.tar.gz (0 signals introduced since)
Files
276 scanned, 8 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 4 info
Scan time
4.2 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 1 of 1 warn and critical signal; 1 demoted to info.
Disclude version
4.3.0
Scanned (UTC)
2026-10-23 00:00

Signals

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

  1. info warn → info by review encoding-base64 tests/test_json.py:193:22

    base64-like blob (44 bytes, compression ratio 1.25) (raw pass, confidence 0.60)

        data = b'\xd8\x07\xc1Tx$\x91F%\xf3\xf3I\xca\xd8@\x0c\xee\xc3\xab\xff\x7f\xd3\xcd\xcd\xf9\xc2\x10\xe4\xa1\xb01e'
        encoded_std = b'"2AfBVHgkkUYl8/NJythADO7Dq/9/083N+cIQ5KGwMWU="'
        encoded_url = b'"2AfBVHgkkUYl8_NJythADO7Dq_9_083N-cIQ5KGwMWU="'
        assert to_json(data, bytes_mode='base64') == encoded_url
    dismissed LLM, confidence 0.97 Test fixture containing expected base64 encodings used to verify bytes serialization in a JSON library.
    Reasoning

    The flagged blob is a base64 literal in a unit test that checks to_json base64 encoding of a 32-byte binary sample against expected standard and URL-safe outputs. The raw pass flags any base64-like string, and this is a deliberate test fixture in a JSON library, not obfuscated or malicious code. It has no execution or network behaviour.

  2. identifier `а` contains homoglyph candidates: а (0430)→a (in string/comment) (raw pass, confidence 0.35)

            ),
            pytest.param('а' * 25, 32, None, id='a lot of `а`s'),
        ],
    )
  3. identifier `а` contains homoglyph candidates: а (0430)→a (in string/comment) (raw pass, confidence 0.35)

            ),
            pytest.param('а' * 25, 32, None, id='a lot of `а`s'),
        ],
    )
  4. info unicode-mixed-script tests/validators/test_url.py:270:28

    identifier `pasℝs` mixes scripts: Latin + Other (in string/comment) (raw pass, confidence 0.40)

            (
                'http://usßer:pasℝs@a💣b.com:123/c?d=e&d=f#g',
                {
                    'str()': 'http://us%C3%9Fer:pas%E2%84%9Ds@xn--ab-qt72a.com:123/c?d=e&d=f#g',

Reproduce This Scan

Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. 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.3.0
curl -fsSL -o pydantic_core-2.50.1.tar.gz https://files.pythonhosted.org/packages/a6/24/af4ec4be49fbc810f35b0bdcacc3d433b56bbfa469fd3bfd4ae116cd9bf1/pydantic_core-2.50.1.tar.gz
printf '%s  %s\n' e50d7b94baac6c7d09927fa5ca5800a0c7ee5015c7fcff65beb3a1931b5a6e09 pydantic_core-2.50.1.tar.gz | shasum -a 256 -c -
mkdir pkg && tar -xzf pydantic_core-2.50.1.tar.gz -C pkg --strip-components 1
disclude scan --untrusted --severity info pkg