PyPI / posthog / 7.75.5

posthog 7.75.5

Source
https://github.com/posthog/posthog-python
Artifact scanned
posthog-7.75.5-py3-none-any.whl (wheel · 900.5 KB · SHA-256 62e6e0e198c5…)
Compared with
posthog-7.75.4-py3-none-any.whl (0 signals introduced since)
Files
260 scanned, 5 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 7 info
Scan time
6.9 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 7 of 7 warn and critical signals; 7 demoted to info.
Disclude version
4.3.0
Scanned (UTC)
2026-10-23 16:43

Signals

Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.

  1. info warn → info by review frame-introspection posthog/exception_utils.py:1060:21

    `sys._getframe` — call-stack frame introspection (ast pass, confidence 0.70)

            try:
                frame = sys._getframe(depth)
                depth += 1
            except ValueError:
    likely benign LLM, confidence 0.85 Walks call-stack frames via sys._getframe to collect frame info for exception reporting.
    Reasoning

    sys._getframe(depth) inside a try/except ValueError loop walking up the stack is a standard way to find the calling module or frame depth for exception context. Used for metadata collection, not hidden execution.

  2. info warn → info by review encoding-base64 posthog/test/mcp/test_session_token.py:68:15

    base64-like blob (95 bytes, compression ratio 1.12) (raw pass, confidence 0.60)

        )
        frozen = "eyJzaWQiOiJzZXNfZml4dHVyZSIsImNuIjoiQ2xhdWRlIENvZGUiLCJjdiI6IjEuMi4zIiwicHYiOiIyMDI1LTA2LTE4In0"
    
        # Encode side: our output is byte-identical to the shared wire format.
    likely benign LLM, confidence 0.90 Test fixture containing a base64url-encoded session token JSON string.
    Reasoning

    A base64url-looking string literal in a test file that decodes to a JSON session token with plausible fields (sid, cn, cv, pv). It is a test fixture for a wire-format round-trip; no execution or hidden payload.

  3. info warn → info by review decoder-decompress-payload posthog/test/test_capture_v1.py:456:24

    file imports decoder module(s) zlib and calls `.decompress()` — embedded payload decompressed at runtime (ast pass, confidence 0.75)

            self.assertEqual(call["data"][0], 0x78)  # zlib header
            roundtripped = zlib.decompress(call["data"]).decode("utf-8")
            self.assertNotIn("api_key", json.loads(roundtripped))
    likely benign LLM, confidence 0.93 Unit test decompressing a captured zlib request body to verify contents.
    Reasoning

    Test asserts zlib header and round-trips compressed request data to check api_key is not leaked. Decompression of captured test payload, not an embedded runtime payload.

  4. info warn → info by review decoder-decompress-payload posthog/test/test_metrics.py:55:23

    file imports decoder module(s) gzip and calls `.decompress()` — embedded payload decompressed at runtime (ast pass, confidence 0.75)

        body = kwargs.get("data")
        return json.loads(gzip.decompress(body).decode("utf-8"))
    likely benign LLM, confidence 0.93 Test helper gunzipping a mocked request body for JSON assertions.
    Reasoning

    Helper in a test file gunzips a mocked HTTP request body to parse JSON for assertions. Standard test code.

  5. info warn → info by review decoder-decompress-payload posthog/test/test_request.py:227:27

    file imports decoder module(s) gzip, zlib and calls `.decompress()` — embedded payload decompressed at runtime (ast pass, confidence 0.75)

            self.assertEqual(headers["Content-Encoding"], "gzip")
            body = json.loads(gzip.decompress(data))
            self.assertEqual(body["batch"], [])
            self.assertEqual(body["api_key"], TEST_API_KEY)
    likely benign LLM, confidence 0.93 Unit test gunzipping captured request data to check its JSON fields.
    Reasoning

    Test decompresses a gzip request body and checks batch and api_key fields. Ordinary test verification of outgoing payloads.

  6. info warn → info by review decoder-decompress-payload posthog/test/tracing/test_client_traces.py:60:23

    file imports decoder module(s) gzip and calls `.decompress()` — embedded payload decompressed at runtime (ast pass, confidence 0.75)

        args, kwargs = session.post.call_args
        return json.loads(gzip.decompress(kwargs["data"])), args[0], kwargs
    likely benign LLM, confidence 0.93 Test helper gunzipping mocked POST data for trace assertions.
    Reasoning

    Helper decompresses gzip data from a mocked session.post call for test assertions. Standard test code with no execution of the decoded content.

  7. info warn → info by review decoder-decompress-payload posthog/test/tracing/test_transport.py:71:27

    file imports decoder module(s) gzip and calls `.decompress()` — embedded payload decompressed at runtime (ast pass, confidence 0.75)

            assert kwargs["headers"]["Content-Type"] == "application/json"
            assert json.loads(gzip.decompress(kwargs["data"])) == PAYLOAD
    
        def test_falls_back_to_the_default_timeout(self):
    likely benign LLM, confidence 0.93 Test checking gunzipped transport payload equals the expected PAYLOAD.
    Reasoning

    Asserts that gzip-compressed request data equals the expected payload. Ordinary transport test verification.

Reproduce This Scan

Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.

cargo install disclude --version 4.3.0
curl -fsSL -o posthog-7.75.5-py3-none-any.whl https://files.pythonhosted.org/packages/43/cc/d028e9c3af4a383cb7072487ef1d93ef38f4ff1b33dbf980226ea9986229/posthog-7.75.5-py3-none-any.whl
printf '%s  %s\n' 62e6e0e198c516c7bae3230ad50084e55c292e9fae9e2441dfa91dc9874a42ac posthog-7.75.5-py3-none-any.whl | shasum -a 256 -c -
unzip -q posthog-7.75.5-py3-none-any.whl -d pkg
disclude scan --untrusted --severity info pkg