posthog 7.75.4
- Source
- https://github.com/posthog/posthog-python
- Tag scanned
posthog-v7.75.4- Compared with
posthog-v7.75.3(0 signals introduced since)- Files
- 442 scanned, 286 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 2 warn · 8 info
- Scan time
- 8.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.1.0
- Scanned (UTC)
- 2026-10-22 13:45
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
return return fsuspicious Example calculator tool evaluates a user-supplied math expression with eval after replacing ^ with **.Reasoning
eval is applied to an expression string after only a character-whitelist check in the example calculator tool; this is a real code-injection risk pattern in a sample, but it is a well-known demo mistake rather than hidden malicious intent. Flagging as suspicious because the eval is on model/user-provided input, not an obfuscated payload.
-
return return fsuspicious Example calculator tool evaluates a user-supplied math expression with eval.Reasoning
Same eval-based calculator as multi_agent.py in a sample directory; insecure example code with a character filter, not evidence of malicious intent.
-
= += 1likely benign Walks the call stack via sys._getframe to collect frame information for exception reports.Reasoning
sys._getframe with a depth counter inside a try/except ValueError is the standard idiom for walking the stack to collect frames for exception reporting. Legitimate SDK behavior.
-
) = # Encode side: our output is byte-identical to the shared wire format.likely benign Base64 test fixture encoding a small JSON session token in a unit test.Reasoning
The blob is a short base64url-encoded JSON test fixture (sid, cn, cv, pv fields) used to check encoding byte-identity in a test file. Plain test data, not a payload.
-
# zlib header =likely benign Test decompresses its own captured request body to assert the API key is not leaked.Reasoning
In a test, zlib.decompress is used to round-trip a request body the test itself produced and verify api_key is absent. No embedded payload executed.
-
= returnlikely benign Test helper decompresses and parses a gzip-encoded mock request body.Reasoning
Test helper gunzips a captured mock request body to parse JSON for assertions. Ordinary test code.
-
=likely benign Test decompresses a captured gzip request body to check its contents.Reasoning
Unit test gunzips and JSON-parses a request body to check batch and api_key fields. Normal test verification.
-
info
warn→ info by reviewdecoder-decompress-payloadposthog/test/tracing/test_client_traces.py:60:23, = return , ,likely benign Test helper gunzips a mocked POST body to inspect the JSON payload.Reasoning
Test helper gunzips mock POST data for assertions. Standard test scaffolding.
-
assert == assert ==likely benign Test checks that a gzip-compressed request body decodes to the expected payload.Reasoning
Test asserts the gzip-decompressed request body equals 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.
&&