posthog 7.70.0
- Source
- https://github.com/posthog/posthog-python
- Tag scanned
posthog-v7.70.0- Compared with
posthog-v7.69.0(0 signals introduced since)- Files
- 426 scanned, 272 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 10 info
- Scan time
- 10.7 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 9 of 9 warn and critical signals; 9 demoted to info.
- Disclude version
- 4.0.0
- Scanned (UTC)
- 2026-10-15 18:12
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
return return flikely benign A demo calculator tool evaluates an arithmetic expression with eval after a character check.Reasoning
eval runs on an expression that comes from agent or user input. That is a real code-injection risk in a sample, but the snippet shows a character check ('Error: invalid characters') guarding it, and there is no obfuscation or hidden payload. It is an unsafe example pattern rather than malicious code.
-
info
warn→ info by reviewdynamic-executionexamples/example-ai-openai-agents/single_agent.py:29:23return return flikely benign A single-agent demo calculator evaluates an arithmetic expression with eval after a character check.Reasoning
Same eval-on-input pattern as multi_agent.py, with the same validation guard visible in the snippet. It is an example-code risk, not evidence of malicious intent.
-
= += 1likely benign Exception utility code walks stack frames via sys._getframe to gather caller context.Reasoning
Walking the call stack with sys._getframe(depth) inside a try/except ValueError is a standard way to inspect caller frames for module or context names in exception reporting. Nothing here hides behavior.
-
) = # Encode side: our output is byte-identical to the shared wire format.likely benign A test fixture holds a base64url-encoded session token used to verify the wire format.Reasoning
The string is a base64url-encoded JSON fixture (it begins with eyJ and decodes to a small session object with plain fields). It is a test fixture for a wire-format encode/decode check, not a hidden payload.
-
# zlib header =likely benign A test decompresses a captured zlib request body to check its contents.Reasoning
zlib.decompress is applied to a request body captured from a mocked call, then parsed as JSON to assert that the api_key is absent. This is ordinary test verification of compressed request payloads, not a runtime-embedded payload.
-
= returnlikely benign A test helper decompresses a captured gzip request body and parses the JSON.Reasoning
gzip.decompress is applied to a mocked request body and parsed as JSON in a test helper. This is standard handling of compressed HTTP payloads in tests.
-
=likely benign A request test decompresses a captured gzip body to check its JSON fields.Reasoning
The test decompresses a captured gzip body to assert on batch and api_key fields. This is ordinary test assertion code with no hidden or dynamic payload.
-
info
warn→ info by reviewdecoder-decompress-payloadposthog/test/tracing/test_client_traces.py:60:23, = return , ,likely benign A tracing test helper decompresses a mocked gzip POST body and parses it.Reasoning
A helper decompresses a mocked session POST body and parses it as JSON for trace assertions. This is routine test plumbing.
-
assert == assert ==likely benign A transport test decompresses the gzip body sent to a mocked post and compares it to the expected payload.Reasoning
The test decompresses the gzip data passed to a mocked post and compares it with an expected payload. This is standard transport verification in a test.
-
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.
&&