posthog 7.71.0
- Source
- https://github.com/posthog/posthog-python
- Tag scanned
posthog-v7.71.0- Compared with
posthog-v7.70.2(0 signals introduced since)- Files
- 429 scanned, 275 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 2 warn · 8 info
- Scan time
- 9.8 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-16 21:41
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
return return flikely benign A calculator tool in an example agent evaluates a validated arithmetic expression with eval.Reasoning
eval runs on an expression the LLM agent supplies, which is a real code-injection risk if the character filter is weak. The snippet shows an 'invalid characters' check before the eval, so the input is at least partly filtered. This is example code, not a dropper or obfuscated payload.
-
return return flikely benign A single-agent example evaluates a validated arithmetic expression with eval.Reasoning
This is the same calculator eval pattern as multi_agent.py, with the same character validation before it. It is a demo-level weakness that a careful reviewer would flag, not evidence of malicious intent.
-
= += 1likely benign Walks call-stack frames to collect context for exception reporting.Reasoning
sys._getframe(depth) in a loop with a ValueError guard is a standard way to walk the stack for exception-context reporting. Nothing here is hidden or exfiltrating.
-
) = # Encode side: our output is byte-identical to the shared wire format.likely benign A base64url test fixture encoding a small JSON session token.Reasoning
The string is a base64url-encoded JSON object with session fields and a client version. It is a fixed test fixture used to check wire-format compatibility, not a hidden payload.
-
# zlib header =likely benign A test decompresses a captured request body to assert on its contents.Reasoning
zlib.decompress here round-trips a request body the test itself captured, then checks that api_key is absent. This is test verification, not runtime payload execution.
-
= returnlikely benign A test helper decompresses a mocked gzip request body to parse its JSON.Reasoning
gzip.decompress is applied to a mocked request body inside a test helper that parses the JSON for assertions. It is ordinary test plumbing.
-
=likely benign A request test decompresses captured gzip data to check the batch and key fields.Reasoning
gzip.decompress is applied to captured request data, and the test then asserts on the batch and api_key fields. This is expected behavior for an HTTP client test.
-
info
warn→ info by reviewdecoder-decompress-payloadposthog/test/tracing/test_client_traces.py:60:23, = return , ,likely benign A tracing test decompresses a mocked POST body to inspect the sent JSON.Reasoning
gzip.decompress of a mocked session.post payload is parsed for assertions in a tracing test. Nothing executes the decompressed data.
-
assert == assert ==likely benign A transport test decompresses a mocked body and compares it to an expected payload.Reasoning
gzip.decompress of a mocked request body is compared to a known PAYLOAD in a transport test. This is routine verification of serialization.
-
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.
&&