posthog 7.72.0
- Source
- https://github.com/posthog/posthog-python
- Tag scanned
posthog-v7.72.0- Compared with
posthog-v7.71.0(0 signals introduced since)- Files
- 429 scanned, 276 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 2 warn · 8 info
- Scan time
- 9.3 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 9 of 9 warn and critical signals; 7 demoted to info.
- Disclude version
- 4.0.0
- Scanned (UTC)
- 2026-10-20 07:10
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
return return fsuspicious Calculator tool in an example agent passes a sanitized expression string to eval.Reasoning
eval is called on an expression derived from user/LLM input after replacing ^ with **. This is a genuine code-injection risk in an example, though the snippet shows a character check earlier (the 'invalid characters' return) that partly restricts input. Still a poor pattern worth flagging.
-
return return fsuspicious Single-agent example calculator evaluates a filtered expression with eval.Reasoning
Same eval-based calculator as multi_agent.py, with an earlier invalid-character guard. Risky pattern in example code, not evidence of malicious intent.
-
= += 1likely benign Stack walking helper that reads frames up to a depth until ValueError.Reasoning
sys._getframe with a depth counter inside a try/except ValueError is the standard way to walk the stack for exception context in a logging/telemetry library. Legitimate.
-
) = # Encode side: our output is byte-identical to the shared wire format.likely benign Test fixture containing a base64 encoded JSON session token.Reasoning
The string is a base64url-encoded JSON fixture (decodes to session/client metadata) in a test asserting wire-format compatibility. Plain test data, not obfuscation.
-
# zlib header =likely benign Test roundtrips a zlib-compressed capture payload to check its contents.Reasoning
Test decompresses its own zlib-compressed request body to assert the api_key is absent. Normal test verification of an outgoing payload.
-
= returnlikely benign Test helper gunzips and parses a captured request body.Reasoning
Helper decompresses a gzip request body captured from a mock to parse JSON for assertions. Standard test code.
-
=likely benign Request test decompresses gzip body to verify its JSON contents.Reasoning
Test gunzips captured request data to check batch and api_key fields. Ordinary test assertion logic.
-
info
warn→ info by reviewdecoder-decompress-payloadposthog/test/tracing/test_client_traces.py:60:23, = return , ,likely benign Tracing test helper decompresses gzip payload from mock call args.Reasoning
Helper gunzips mocked session post data for test inspection. Ordinary test code.
-
assert == assert ==likely benign Transport test checks gzip-compressed JSON payload equals expected data.Reasoning
Test decompresses the gzip body passed to a mocked post and compares to the expected payload. Routine test verification.
-
class posthog.client.Client(project_api_key: str, host=None, debug=False, max_queue_size=10000, send=True, on_error=None, flush_at=100, flush_interval=5.0, gzip=False, max_retries=3, sync_mode=False, timeout=15, thread=1, poll_interval=30, personal_api_key=None, disabled=False, disable_geoip=True, is_server=True, histo
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.
&&