PyPI / posthog / 7.75.4

posthog 7.75.4

Source
https://github.com/posthog/posthog-python
Artifact scanned
posthog-7.75.4-py3-none-any.whl (wheel · 899.8 KB · SHA-256 139a23d20b0a…)
Compared with
posthog-7.75.3-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.0 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 12:39

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 the call stack via sys._getframe to collect frame information for exception reports.
    Reasoning

    sys._getframe(depth) inside a try/except ValueError loop walks the stack to collect frames for exception reporting. This is a standard, legitimate use in error-tracking libraries.

  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 JSON session token.
    Reasoning

    A base64url-encoded JSON string literal in a test fixture, decoding to session metadata with a fixture id. The test comment says it checks wire-format compatibility. No execution or hidden payload is involved; it is test data.

  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 Test decompresses a captured zlib payload to assert the API key is absent.
    Reasoning

    In a unit test, zlib.decompress is used to verify that a captured request body does not contain the api_key. This is ordinary test assertion code operating on the test's own captured data.

  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 gunzips a mocked request body and parses its JSON.
    Reasoning

    A test helper decompresses a gzip request body captured from a mock to parse its JSON. This is routine 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 Test gunzips a mocked request body to assert its contents.
    Reasoning

    The test decompresses a gzip body from a mocked request to check batch contents and API key. Standard test verification of serialized output.

  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 gunzips captured POST data and parses JSON.
    Reasoning

    A test helper gunzips the kwargs data captured from a mocked session.post call and parses JSON. Routine test inspection of the outgoing payload.

  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 asserts the decompressed gzip payload matches the expected fixture.
    Reasoning

    The test asserts that gzip-decompressed mock request data equals the expected payload. Ordinary transport test code.

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.4-py3-none-any.whl https://files.pythonhosted.org/packages/a4/8b/1d250ca0c427ec7084c4dd9cfb92f55ba0c05fe5fd488582a05dd4504492/posthog-7.75.4-py3-none-any.whl
printf '%s  %s\n' 139a23d20b0a811af7df24315c5437f8e9a84da242b067bddfe52a53062c6e5d posthog-7.75.4-py3-none-any.whl | shasum -a 256 -c -
unzip -q posthog-7.75.4-py3-none-any.whl -d pkg
disclude scan --untrusted --severity info pkg