PyPI / sentry-sdk / 2.73.0
sentry-sdk 2.73.0
- Source
- https://github.com/getsentry/sentry-python
- Tag scanned
2.73.0- Compared with
2.72.0(0 signals introduced since)- Files
- 546 scanned, 44 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 33 info
- Scan time
- 22.1 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 32 of 32 warn and critical signals; 32 demoted to info.
- Disclude version
- 4.1.0
- Scanned (UTC)
- 2026-10-22 21:29
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
-
in . : """likely benign Docstring example of an AWS extended request ID.Reasoning
The base64-like string is an example AWS request ID inside a docstring, not executable or hidden payload.
-
# Find the correct frame : = =likely benign Sentry SDK walks the call stack to find the correct frame for source path lookup.Reasoning
sys._getframe is used by the Sentry SDK to locate the calling frame for module path resolution, a standard diagnostic practice.
-
: =likely benign Stack walk to determine which frames to report, skipping hidden ones.Reasoning
Frame walking to skip hidden frames when building stack traces is legitimate SDK behavior.
-
== : = = Truelikely benign Test helper decompresses recorded request bodies for assertions.Reasoning
Test fixture decompressing a brotli/gzip HTTP request body captured from the test transport; expected test infrastructure.
-
= # If decompression fails, assume it's plain textlikely benign Test helper that decompresses gzip bodies with fallback to plain text.Reasoning
Test utility gunzips a response body with a plaintext fallback; ordinary test parsing code.
-
""" return inspect.currentframe() class GetFrame:likely benign Test class returning the current frame to exercise frame logic.Reasoning
Test helper returning inspect.currentframe() to verify frame handling in a lazy object wrapper; no malicious behavior.
-
""" return inspect.currentframe() instance = SimpleLazyObjectWrapper(lambda: GetFrame())likely benign Test lazy-object wrapper returning the current frame.Reasoning
Same test helper pattern as the sibling finding; benign test scaffolding.
-
likely benign Test installs a built package via uv with a shell command using a temp directory.
Reasoning
The shell command interpolates sys.executable and a tmpdir path inside a test that builds and installs a package; it is test tooling, though shell=True with formatted strings is poor practice and the command is not attacker-controlled.
-
= =likely benign Test runs a generated main.py via os.popen in a temp directory.Reasoning
os.popen formats only a local tmpdir path into a test command running a local main.py; benign test execution, flagged only due to non-literal command.
-
info
warn→ info by reviewencoding-base64tests/integrations/google_genai/test_google_genai.py:3265:26:likely benign Base64-encoded tiny PNG used as test image data.Reasoning
A small PNG image encoded as base64 test fixture for inline_data; expected in multimodal API tests.
-
: , }likely benign Base64 PNG data URL in a LangChain multimodal test.Reasoning
A tiny PNG data URL used as a test image input; benign fixture.
-
: , : , }likely benign Base64 PNG content string in a LangChain test.Reasoning
Same tiny PNG base64 fixture as the sibling finding; benign test data.
-
info
warn→ info by reviewencoding-base64tests/integrations/pydantic_ai/test_pydantic_ai.py:4123:40likely benign Base64 SVG data URL used as a pydantic_ai test parameter.Reasoning
A small SVG data URL test parameter; benign fixture for blob substitution tests.
-
return returnlikely benign Test helper that returns a frame at a requested depth for profiler tests.Reasoning
Profiler test helper returning inspect.currentframe() at a given depth to test frame capture; benign.
-
returndismissed Test helper returning the current frame from an inherited instance method.Reasoning
Test helper that returns inspect.currentframe() to verify the profiler's stack capture for inherited instance methods. Frame introspection is the subject under test, and the file is a test module.
-
return returndismissed Nested test wrapper that returns the current frame.Reasoning
Nested wrapper in a profiler test returning inspect.currentframe() so the test can check frame naming and depth. Legitimate test scaffolding.
-
returndismissed Test classmethod returning the current frame.Reasoning
Classmethod test helper returning the current frame, used to exercise profiler stack extraction for inherited class methods.
-
return returndismissed Nested test wrapper returning the current frame.Reasoning
Nested wrapper in the same profiler test family, returning the current frame to check captured frame information.
-
returndismissed Test static method returning the current frame.Reasoning
Static method test helper returning the current frame to validate profiler output for static methods.
-
returndismissed Test instance method returning the current frame.Reasoning
Instance method test helper returning the current frame, part of a matrix of method kinds the profiler test covers.
-
return returndismissed Nested test wrapper returning the current frame.Reasoning
Nested wrapper returning the current frame in the profiler method-kind test matrix.
-
returndismissed Test classmethod returning the current frame.Reasoning
Classmethod test helper returning the current frame for profiler coverage of class methods.
-
return returndismissed Nested test wrapper returning the current frame.Reasoning
Nested wrapper returning the current frame in the profiler test matrix.
-
returndismissed Test static method returning the current frame.Reasoning
Static method test helper returning the current frame for profiler coverage.
-
dismissed Parametrized test lambda returning the current frame.
Reasoning
Parametrized pytest case using a lambda that returns the current frame to check the profiler's handling of lambda frames. Test-only code.
-
# look for in the final stack to make sure its in the right position = + 1 # increase the max_depth by the `base_stack_depth` to accountdismissed Test computes baseline stack depth via inspect.stack.Reasoning
Computes the baseline stack depth with len(inspect.stack()) to set expected max_depth in a profiler test. Ordinary test arithmetic.
-
, , )dismissed Parametrize argument computing stack depth via inspect.stack.Reasoning
Pytest parametrize value computes expected stack depth with inspect.stack() for a cache test of stack extraction. Test-only.
-
= =dismissed Test grabs the current frame to exercise frame serialization.Reasoning
Test utility grabs the current frame with sys._getframe() and passes it to serialize_frame to verify frame serialization in the Sentry SDK. Expected for an SDK test suite.
-
= # noqa: F841 returndismissed Test helper returning the current frame with a local variable present.Reasoning
Test helper returns sys._getframe() after a local variable, so serialization of locals can be checked. Standard test technique.
-
returndismissed Test helper returning a frame for denylist serialization checks.Reasoning
Test helper returns the current frame to check denylist handling of stack frame variables in the SDK's data collection config. Test-only.
-
= =dismissed Test serializes the current frame with a mocked serializer failure.Reasoning
Test grabs the current frame and serializes it while mocking the serializer to produce a failure message. Tests SDK error handling; no malicious behavior.
-
=likely benign A test helper calls exec on a supplied code string inside a try/except that collects raised exceptions.Reasoning
The AST pass flags exec on a non-literal expression, but the context is a test utility. The snippet runs code with an empty globals dict and catches exceptions via exceptions_from_error_tuple(sys.exc_info()), which suggests a test helper that checks whether supplied code raises. The code is passed in by test authors, not fetched from an external source, and no network, encoding, or shell activity appears. Dynamic exec in test fixtures is common, so this looks benign, though the surrounding code is not shown.
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.
&&