pydantic 2.14.1
- Source
- https://github.com/pydantic/pydantic
- Tag scanned
v2.14.1- Compared with
v2.14.0(0 signals introduced since)- Files
- 713 scanned, 96 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 23 info
- Scan time
- 11.5 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 15 of 15 warn and critical signals; 15 demoted to info.
- Disclude version
- 4.1.0
- Scanned (UTC)
- 2026-10-21 20:52
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
# Install Rust |likely benign Installs Rust via rustup's official curl-pipe-sh installer.Reasoning
Piping curl output from the official rustup domain into sh is the documented rustup install method; it is a known supply-chain-risky pattern but is the vendor's standard install, with TLS 1.2 and https enforced.
-
| # Install uvlikely benign Sources the cargo environment file after installing Rust.Reasoning
Sourcing $HOME/.cargo/env is the standard post-rustup step to update PATH; the path is a fixed user-home file written by the installer.
-
# Install uv |likely benign Installs uv via astral's official curl-pipe-sh script.Reasoning
Piping the official astral.sh uv installer into sh is the documented install method for uv, a legitimate build-setup step in a docs build script.
-
# https://pre-commit.com/#install |likely benign Documentation snippet recommending the official uv curl-pipe-sh installer.Reasoning
Contributor documentation showing the official uv install one-liner followed by pre-commit installation; a standard install instruction, not hidden execution.
-
= b = b = b assert ==likely benign Test fixture of base64 encodings for JSON bytes serialization.Reasoning
The base64-like string is a test fixture comparing standard and URL-safe base64 encodings of bytes; expected test data, not a payload.
-
), , ], ) -
), , ], ) -
-
let buffer = await blob.; return ; } } -
= = returnlikely benign Lazy attribute loader caching imported submodules into module globals.Reasoning
Lazy-loading module attributes via globals() caching after import_module is the standard PEP 562-style __getattr__ pattern in pydantic's public API.
-
=likely benign Walks the call stack to extract class source for docstrings.Reasoning
inspect.currentframe is used to locate source for docstring extraction; ordinary introspection in a validation library.
-
=likely benign Retrieves caller frame to resolve generic model namespace.Reasoning
sys._getframe to find the caller's namespace for generic parametrization is a known, legitimate pydantic technique with a clear error path.
-
""" frame = sys._getframe(parent_depth) if frame.f_code.co_name.startswith('<generic parameters of'):likely benign Reads parent frame to detect generic parameter scope in typing helpers.Reasoning
Frame access to detect generic-parameter scopes is ordinary typing-introspection code in pydantic internals.
-
= =likely benign Reads caller's globals to set model __module__ name.Reasoning
Caller-frame lookup to set __module__ when not provided is a standard metaclass idiom in pydantic.
-
= # Because `TypeAdapter` is generic, explicitly parametrizing the class resultslikely benign Fetches parent frame to resolve type namespace in TypeAdapter.Reasoning
Parent frame retrieval for namespace resolution in TypeAdapter is expected library behavior.
-
# and so we skip the globalns = get_module_ns_of(typ) call that would normally happen = . =likely benign Reads caller frame globals to build namespace resolver.Reasoning
Frame globals access for parent namespace depth is legitimate namespace resolution, documented in nearby comments.
-
=likely benign Retrieves caller frame for generic model namespace in v1 code.Reasoning
Same legitimate caller-frame lookup used for generic model creation in pydantic v1 compatibility code.
-
assert .. is Nonelikely benign Test executes a local source string to check field descriptions.Reasoning
exec on a test-defined source string to verify docstring extraction behavior; test code operating on literal fixtures.
-
, , , , -
-
, , , ), -
, , ), -
""" exec(code, {'bar': 'baz'})likely benign Test execs a code string with injected globals to exercise plugin behavior.Reasoning
exec of a small test code string with a restricted globals dict inside a plugin test; expected test behavior, not an attack.
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.
&&